[Qt-interest] How to remove size grip from a tool type window
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Tue Jul 21 04:34:09 CEST 2009
Hi Everybody,
In the attached image from Mac you can see a window with a disabled size grip. How can I stop the size grip being drawn at all?
I've tried calling findChild<QSizeGrip *>(), but it returns 0. I was hoping it would return something that I could then hide.
In other tool windows that I have, the widget paints the entire surface, so the problem doesn't occur. In this case, that is not an option, since this window has tool button children.
The constructor uses:
NotePalette::NotePalette(NotePaletteOptions &options, QWidget *parent)
: QWidget(parent, Qt::Window | Qt::CustomizeWindowHint )
The window is constructed using a QDialog as parent.
Alternatively, is there a way to override the paint event, fill the background, then draw just the tool button children, and not the size grip?
Note: On Windows, the size grip seems to only appear on windows with a status bar.
Thanks in advance,
Tony.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: note_palette.png
Type: image/png
Size: 27483 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090721/c716f760/attachment.png
More information about the Qt-interest-old
mailing list