How to build the project Qt Designer from source code in Qt Creator?



  • Hi All,

    I am quite new to Qt environment.
    And would like to try out something.

    What I want is to build the Qt Designer project in Qt Creator.
    I have installed Qt Creator 3.0.0.
    And I have downloaded qt-everywhere-opensource-src-4.8.4.zip.

    I started the Qt Creator and build the project, and opened qt-everywhere-opensource-src-4.8.4/tools/designer/designer.pro

    It parses without any error.
    And when I start Run button,
    I got this compile output:

    In file included from ../../../designer/src/lib/uilib/abstractformbuilder.cpp:42:0:
    ../../../designer/src/lib/uilib/abstractformbuilder.h:51:29: fatal error: QtGui/QSizePolicy: No such file or directory
    compilation terminated.
    make[2]: *** [abstractformbuilder.o] Error 1

    I have found this file in qt-everywhere-opensource-src-4.8.4/include/QtGui/QSizePolicy

    I guess, it should add it. But I do not know why it is not finding it.

    Any help will be appreciated.

    If anyone knows different source code for Qt Designer where I can build in Qt Creator, would be also nice.

    The main purpose for me, is to change/add some code to the source code of Qt Designer to fit my interest.

    Thanks in advance.



  • You are trying to build the Qt 4 version of Designer against Qt 5. You need to either have a Qt 4 version set up and build against that or you check out the Qt 5 version of Designer etc. The best way for that is probably to build all of Qt 5 from source (including Qt Creator).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.