Domanda

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 ?

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top