Creating .pro file with qmake doesnt add QT += widgets
-
Hi,
Is there a reason the .pro file created with qmake doesn't add QT += widgets automatically ? Is there a way to add it when running the qmake -project ?
Thanks
Marcus
@Mighty-M According to qmake -h
"-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *; *; *; *.ts; *.xlf; *.qrc
Note: The created .pro file probably will
need to be edited. For example add the QT variable to
specify what modules are required."
Looks like there is no way to take qmake to do that. Actually there are many modules and qmake does not know which to add. Not each project requires widgets. -
Hi,
IIRC you can do that by adding "QT += widgets" (including quotes) after the -project option.