[Interest] [Qt5 Beta] qmake: *.ui files not generated (uic not called)? [SOLVED]

Till Oliver Knoll till.oliver.knoll at gmail.com
Sun Sep 2 12:44:51 CEST 2012


Am 01.09.12 12:24, schrieb Till Oliver Knoll:
> Am 01.09.2012 um 11:54 schrieb Till Oliver Knoll <till.oliver.knoll at gmail.com>:
>
>> ...
>>
>> Any ideas? Is "FORMS" not the proper keyword here (anymore)?
>
> I have yet to check the generated Makefiles
 > ...

So I quickly generated a new GUI Widgets project with the (old) Qt 
Creator 2.4.1, and after quickly adjusting some #include 
(<QtWidgets/QApplication> etc.) I ran into the exact same issue: 
ui_MainWindow.h and the other uic related files were not generated!

However I *think* I found the solution: I daringly added 'widgets' (I 
simply guessed!) to the QT configuration, as in:

   QT += core gui widgets

and this led to the generation of the uic files and successful 
compilation of the Qt Creator example project.

(Not sure whether the 'gui' keyword as still any effect).


I didn't see (yet) any mentioning about said 'widgets' QT configuration 
option here:

 
http://doc-snapshot.qt-project.org/5.0/qmake-project-files.html#declaring-qt-libraries

(*hint* *hint* documentation update please ;)) but I guess that must be 
the intended way to continue building Qt widgets applications with Qt 5.


Cheers, Oliver

p.s. I get a warning at link stage (still on Mac OS X):

ld: warning: directory not found for option 
'-F/Users/tknoll/Qt5.0.0beta1/Desktop/Qt/5.0.0-beta1/gcc_64/qtbase/qtbase/lib'

That directory doesn't exist (I did a standard installation of the Beta 
package into my home directory). The application still links properly, 
as it seems.





More information about the Interest mailing list