maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QT Creator/Design and header files (https://talk.maemo.org/showthread.php?t=59727)

mno@8 2010-08-04 08:30

QT Creator/Design and header files
 
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.

cmczzzzz 2010-08-04 20:30

Re: QT Creator/Design and header files
 
Quote:

Originally Posted by mno@8 (Post 775165)
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.

mno@8 2010-08-05 06:39

Re: QT Creator/Design and header files
 
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


All times are GMT. The time now is 19:26.

vBulletin® Version 3.8.8