A
A
AlekseiFlis2019-10-24 14:10:29
User interface
AlekseiFlis, 2019-10-24 14:10:29

Is it possible to write the interface of a desktop program in one language, and the logic in another?

Is it possible to write the user interface of a program in one language, let's say JavaScript, and write the functionality and logic in another, for example, C \ C ++?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Grigory, 2019-10-24
@AlekseiFlis

In the case of C ++ back and JavaScript front, you can look towards Qt and QML. QML is a language for writing gui with embedded JavaScript. It is easy to make friends with the C++ part for heavy calculations.

A
Alexander, 2019-10-24
@NeiroNx

Yes, there are plenty of applications with an interface in the browser.

X
xmoonlight, 2019-10-24
@xmoonlight

Embed the Chromium or Firefox component into the IDE of the application's programming language of choice, and here's a full-fledged browser inside your application. Then - as usual: write (layout) html / css / js resources and assemble them together with the main project code.
PS: this is how I write in Lazarus (delphi)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question