[Qt-interest] Problem including QtUiModule
Girish Ramakrishnan
girish at forwardbias.in
Thu Jun 4 08:13:57 CEST 2009
Patric wrote:
> Hello,
> I can't load the Qt Ui Module.
> http://doc.trolltech.com/4.5/qtuitools.html
>
> I added
> CONFIG += uitools in my pro file
> and also
> #include <QtUiTools> in my implementation file.
>
>
> # -------------------------------------------------
>
> # Project created by QtCreator 2009-06-03T19:59:44
>
> # -------------------------------------------------
>
> QT += network
>
> CONFIG += uitools
>
>
>
>
>
>
>
> #include "systemconfigurationtab.h"
>
> #include <QtUiTools>
>
> SystemConfigurationTab::SystemConfigurationTab(QWidget *parent)
>
> : QWidget(parent)
>
> {
>
> QUiLoader loader;
>
> }
>
>
>
> Here is the error :
>
>
>
> D:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory
> `D:/Documents and Settings/Secret/Desktop/workspace/Project
>
> D:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lQtUiToolsd
>
> collect2: ld returned 1 exit status
>
> mingw32-make.exe[1]: *** [debug\Project.exe] Error 1
>
> D:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [debug] Error 2
>
> Exited with code 2.
>
> Error while building project Project
>
> When executing build step 'Make'
>
>
>
>
>
> Where is the problem here ?
>
Debug build of QtUiTools is missing. qt-creator appears to ship with a
debug Qt build but QtUiToolsd is missing probably because designer is
built only in release. Report a bug.
You can either build your project in release or build QtUiTools manually
as debug.
Girish
More information about the Qt-interest-old
mailing list