[Qt-interest] Is the bug for QWidget size after showMaximized()

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Wed May 4 05:43:18 CEST 2011


Hi, 
 
In these situations, sometimes firing off a short timer, and then getting
the size in the timer slot, works around the problem.  
 
Hope that helps, 
 
Tony
 
 

-----Original Message-----
From: qt-interest-bounces+tony.rietwyk=rightsoft.com.au at qt.nokia.com
[mailto:qt-interest-bounces+tony.rietwyk=rightsoft.com.au at qt.nokia.com] On
Behalf Of lvbing lvbing
Sent: Wednesday, 4 May 2011 12:57 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Is the bug for QWidget size after showMaximized()


Hi everyone: 
I have a QWidget,splitter into two QWidget. In the childWidget,I will paint
some image line the table or other,and the 
size of the image will be fit to the childWidget.
So I need to know the size of the childWidget agter call the showMaximized
function.
But the problem is :
In Win32,I can get the correct size,but
In Linux,I can't get the correct size.


I search in assistant,it say:
On X11, this won't work because an invisible window doesn't have a frame
yet. 


so How can I get the correct size after call the showMaximized? Is there any
signal or function?


Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110504/748c710e/attachment.html 


More information about the Qt-interest-old mailing list