July 18, 2010

strekazoid strekazoid
Lab Rat
151 posts

Qt Creator 2.0: UI layout is not updated when running application

 

Doing a small application on Qt Creator 2.0 for Maemo and Symbian. The problem I can see pretty often is that when UI layout is changed in designer, it is not updated to the application when it is run. At the moment struggling to get UI changes working in Qt simulator and Nokia N97 hardware. Ui is just not getting updated. Rebuilding, cleaning the project doesn’t help.

Any hint how to force UI update?

5 replies

July 18, 2010

strekazoid strekazoid
Lab Rat
151 posts

Ok, thing I got it.

The problem was that ui_mainwindow.h was generated to ui\folder; while the build system was using ui_mainwindow.h from the project root folder (the old one). Wonder why this even happening?

July 22, 2010

nashith nashith
Lab Rat
1 posts

I had the same issue testing a small app on the simulator, the UI just doesn’t change.
Any easy fix?

September 9, 2010

mtilli mtilli
Lab Rat
1 posts

You can try to specify explicitly UI_DIR in pro-file. Worked for me at least with desktop-application in similar problem.

September 9, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts
mtilli wrote:
You can try to specify explicitly UI_DIR in pro-file. Worked for me at least with desktop-application in similar problem.

ah I’ll try this next time. Similar issue also addressed in this thread [developer.qt.nokia.com]

September 9, 2010

khris khris
Lab Rat
19 posts

If you don’t set UI_DIR env variable explicitly,

  1. #include "ui_mainwindow.h"
tries including root folder’s first.

Check your other build settings. In case of Nokia Qt SDK default setting, simulator’s build setting doesn’t set UI_DIR then use root(but seperated build path) folder’s.

 Signature 

Let it be, let it be, let it be, walk your way.

 
  ‹‹ example code for Qt Mobility      QFileDialog::getOpenFileName on maemo not browsing entire directory tree ››

You must log in to post a reply. Not a member yet? Register here!