QtCreator 新项目 Qt Quick Controls vs. Qt Quick

标签 qt qml qt-creator qtquick2 qtquickcontrols

我想在 Qt Creator 中创建新的 Qt Quick 项目,我按下了 New project ,在向导中选择了应用程序名称和位置,但是我在下一个向导步骤(Qt 快速组件选择)中感到困惑,如屏幕截图所示:

Qt Creator New project wizard Qt Quick Component Selection

我应该选择哪一组,Qt Quick Controls 1.3 , 或 Qt Quick 2.4 ?它们之间有什么区别?

最佳答案

它在 Qt 文档中说明:

In the Qt Quick component set field, select the component set to use for the project. The Qt Quick imports enable you to use the basic QML types to create user interfaces, whereas the Qt Quick Controls provide a set of ready-made controls that you can customize by using Qt Quick Controls Styles



所以这只是指定了模块的主要导入。您可以稍后在代码中添加其他导入,例如 Qt Quick Dialogs 或 Qt Quick Layouts。

关于QtCreator 新项目 Qt Quick Controls vs. Qt Quick,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29668056/

相关文章:

c++ - 如何让 QML 容器中的最后一项填充剩余空间?

c++ - qt - 对 `_imp__Z*' 的 undefined reference

c++ - 在 C++ 中获取应用程序窗口的大小

qt - 如何使用snapcraft打包Qt5应用程序

QT QMatrix4x4 矩阵,用于原点 x 和 y 的缩放和旋转

c++ - 将 Qt 程序移植到 Windows

c++ - 有人知道像 MFC Internals for Qt 这样的书或文档吗?

qt - QML 文件对话框(选择文件夹)

c++ - 即使 QCloseEvent 被忽略,窗口也被隐藏

c++ - 如何将ios设备联系人与qt app同步?