Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    QT Creator/Design and header files

    Reply
    mno@8 | # 1 | 2010-08-04, 08:30 | Report

    As a good newbie, I started by googling but could not find an answer to my problem. However I doubt I am the only one.
    I installed QTCreator 2.0.0 using the Nokia QT SDK. I tested a few examples and everything works fine.
    Then I create a new project with QWidget windows. In Design, I add a lineEdit, a Label and a pushbutton. Build/Run everything is ok.
    Than use the "Go to slot" menu on the pushbutton and select clicked(). QTCreator returns a error "ui_xxx.h" not found.

    If I display the generated files in the project window, I discover that the ui_xxx.h is created in the "simulator folder" and not in my project folder. This sounds to me like a bug in QTCreator or like a stupid mistake from my part.

    Any help will be appreciated.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cmczzzzz | # 2 | 2010-08-04, 20:30 | Report

    Originally Posted by mno@8 View Post
    As a good newbie, I started by googling but could not find an answer to my problem. However I doubt I am the only one.
    I installed QTCreator 2.0.0 using the Nokia QT SDK. I tested a few examples and everything works fine.
    Then I create a new project with QWidget windows. In Design, I add a lineEdit, a Label and a pushbutton. Build/Run everything is ok.
    Than use the "Go to slot" menu on the pushbutton and select clicked(). QTCreator returns a error "ui_xxx.h" not found.

    If I display the generated files in the project window, I discover that the ui_xxx.h is created in the "simulator folder" and not in my project folder. This sounds to me like a bug in QTCreator or like a stupid mistake from my part.

    Any help will be appreciated.
    I also had constant problems with QTCreator 2.0, several times I had to restart my project from scratch because the designer kept going out of sync with the code resulting in build errors.

    I found the following workaround.
    I develop and test my GUI changes using the Simulator, however whenever I make GUI changes I find I have to switch to Maemo mode by clicking on the "Project" icon on the left panel and switching from Qt Simulator to Maemo. When I do this it triggers a scan and I can then rebuild the project successfully.

    Give this a go and see if it works for you.

    Cheers,
    Chris.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mno@8 | # 3 | 2010-08-05, 06:39 | Report

    Chris,

    Thanks for your reply. As a workaround, I removed the shadow build in the project definition and now everything is ok.
    For the sake of it I open a bug report at Nokia to have an official opinion: I do believe it is a bug ;-).
    http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2018

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout