Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, July 2007
Problems with showMaximized()


Message 1 in thread

Hi,

I hope, that here is someone, who could solve my problem, or could
check if it is an qt-problem.
First I work under Linux with Qt 4.3.0. Second my designer generated
forms break the showMaximized()-funktion.

An minimal-example is attached:
    * Run make and start lykurg -> the window is small
    * edit mainwindow.ui in designer and remove the whole "datei"-menu
    * rebuild the project and start -> window is shown maximized???

Not only if you remove the QMenu the application is shown normal, also
if you don't set the image in the label. I don't see any "coding
problem" in my source, so what's the problem?



Thanks,

Lykurg

Attachment:

Attachment: lykurg.tar.gz
Description: GNU Zip compressed data


Message 2 in thread

Hi,

> Not only if you remove the QMenu the application is shown normal, also
> if you don't set the image in the label. I don't see any "coding
> problem" in my source, so what's the problem?

The window is transiently shown maximized and then resized.

I don't know, it could indeedbe a QStackedWidget issue. It would help if you 
could further strip down the example. Alternatively file a bug report.

--
 [ signature omitted ] 

Message 3 in thread

Hi,

> The window is transiently shown maximized and then resized.
> 
> I don't know, it could indeedbe a QStackedWidget issue. It would help if 
> you could further strip down the example. Alternatively file a bug report.

By stripping down the example I mean for example getting rid of 
"windowmanager". I'm still able to reproduce this issue without it, so ti(s 
not related to QStackedWidget.

--
 [ signature omitted ] 

Message 4 in thread

Hi,

This issue is caused by the following line in ui_mainwindow.h:
	mainwindow->resize(569, 454);

Which in turn is caused by the "Preferred" "sizePolicy" in mainwindow.ui. 
Change it to "Expanding".

--
 [ signature omitted ] 

Message 5 in thread

Hi,

even after setting all in mainwindow and windowmanager to expanding,
the window is resized down. Only comment "resize" out, works.

All is still strange to me.

Lykurg

--
 [ signature omitted ]