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

lvbing lvbing lvbing1981 at gmail.com
Wed May 4 04:57:08 CEST 2011


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/cf76f7ea/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image_info.JPG
Type: image/jpeg
Size: 27527 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110504/cf76f7ea/attachment.jpe 


More information about the Qt-interest-old mailing list