Hacker News new | ask | show | jobs
by GoodbyeEarl 3361 days ago
Sorry for the newbie question, I've never written a desktop application. But do you write the UI in a different language than you write its business logic? For instance, you would write the UI in Delphi with the Lazarus IDE and then the "back-end" of your app would be written in C++, Go or something alike?
1 comments

tl;dr: sometimes the UI can be written in a different language.

Qt used to have an XML markup language that auto generated C++ UI code.

Later, QML was introduced - which is a JavaScript based UI runtime.

There are Qt bindings for other languages, for example Python. So you could write business logic in Python and UI in QML.

Thanks! So is Qt used to write both the logic and the UI?