简体   繁体   中英

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.

How to do the same for a Qt GUI project or a Qt quick one ?

There is no template for a Qt GUI project from qmake command. If tou want a template you can use Qt Creator.

Note that by default, it's a Qt GUI project, You can specify it in the .pro file

Qt project :

QT += gui

Non Gui project :

QT -= gui

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM