Qt: UI with C ++ vs with xml vs with qml

I started learning qt today and asked a question. When I create a project, it comes with a * .ui file, which is an XML type file, but in the book I only create a user interface with pure C ++ (classes). I heard that there is another way to create a user interface with qml.

So what are the pros and cons of creating each user interface?

Thank you in advance

EDIT: I am using QT 5.1.0

+6
source share
2 answers

Remember that you can also embed a QtWebkit view and use HTML directly, as the user interface controls.

You can provide a long answer with the specifics of each substructure, but the people of the QT project have already answered this question with their own diagram:

http://qt-project.org/doc/qt-5.1/qtdoc/topics-ui.html#comparison

+6
source

The .ui file is generated for / using "visual" design layout tools such as QtDesigner - I would not suggest that you create or edit them manually; if you decide not to use the visual or RAD graphical tools, then programmatically starting instances in C ++ is probably fine.

+2
source

Source: https://habr.com/ru/post/949413/


All Articles