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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top