Reply
Thread Tools
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#1
Hi,
I have updated to PR 1.2 and am having some problems with the application I have developed.

The problem is in the new Qt 4.6.
On 4.5 it worked without any problems.

I can't get the GUI to display on the whole window (not full screen). It always cuts off the bottom, cca 50px

The mainWidget size is set to 800x480 px
The GUI controls are organised in QVBoxLayout.
I try to change the height of the layout box, but with no effect. It changes its size, but still cuts off the bottom.

Here is a screenshot of the problem:
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#2
What if you don't set the mainWidget size? I think you don't have to set it manually.
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#3
No change.
The problem still remains even if I don't set the mainWidget size
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#4
Have you set height to other widgets like text area? Remember the height is 480 px only in full screen.
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#5
No, I haven't set the size to other widgets.
I can't seem to change the combobox height.
Text area has size policy set to expanding.

Yes I know 480px is only in full screen.
But it doesn't matter. It should be more than enough.

Btw. the ui is generated with QtDesigner
 
direx's Avatar
Posts: 102 | Thanked: 153 times | Joined on Feb 2010
#6
To me this looks like you've added a statusbar to your mainwindow. If this really applies just remove it in Qt Designer.
 

The Following User Says Thank You to direx For This Useful Post:
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#7
Thanks direx!
QtDesigner automatically added the statusbar.
I deleted it from code and it looks fine now
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:35.