The difference between Qt Widgets and QML/Qt Quick, when to use which?

( The Qt4 version is qt gui Application.  After Qt5, the gui interface can be done with widgets, and it can be done with qml , so they are separated. Therefore, the widgets Application option is qt GUI Application )

1. Qt Widgets is suitable for traditional desktop program development

2. Qt Quick is the main technology of Qt 4.7, Qt official website introduction : Qt Quick is an advanced user interface technology, which can be easily used for mobile development, dynamic touch interface used by embedded devices and lightweight applications. development. In Qt 5, QML is no longer limited to mobile development and can also be used to develop traditional desktop applications. Three new technologies together make up the Qt Quick user interface creation toolkit: an improved Qt Creator IDE, a new easy-to-learn language (QML) and a new module called QtDeclarative Qt is easier to use for developers and designers not familiar with C++.

  • In contrast, Qt Widgets are "older" and more mature, while QML/Qt Quick are "newer" and more "modern".
  • Regardless, both Qt Widgets and QML/Qt Quick are available on multiple platforms (Windows, Linux, OS X...).

(1) For traditional desktop programs, give priority to using Qt Widgets

(2) To develop more "modern" UI and advanced applications, it is recommended to use Qt5.x + QML 2.x + QtQuick 2.x.

(3) For mobile terminal development, it is recommended to use QML in collaboration with JavaScript, which is simple and fast, has better rendering effect, and has a cooler interface. It is not recommended to use Qt Widgets, its display effect and adaptability are not good.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326521353&siteId=291194637