[英]How to create a Qt GUI or QML/Qt quick project with command line qmake?
qmake -project .
this command creates a new .pro
file as a new project with the same name as the parent folder and it automatically includes the available sources in the given folder too. 此命令将创建一个新的
.pro
文件作为与父文件夹同名的新项目,并且还会自动在给定文件夹中包含可用的源。
How to do the same for a Qt GUI project or a Qt quick one ? Qt GUI项目或Qt quick项目如何做?
There is no template for a Qt GUI project from qmake
command. qmake
命令没有Qt GUI项目的模板。 If tou want a template you can use Qt Creator. 如果您要模板,则可以使用Qt Creator。
Note that by default, it's a Qt GUI project, You can specify it in the .pro
file 请注意,默认情况下,它是一个Qt GUI项目,您可以在
.pro
文件中指定它
Qt project : Qt项目:
QT += gui
Non Gui project : 非桂项目:
QT -= gui
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.