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