[Qt-interest] Clipping rect() of QDialog eliminates window frame
Miller, Douglas K. CONT NAVAIR 2109, 1, N139
douglas.k.miller at navy.mil
Tue Oct 20 16:17:42 CEST 2009
I have noticed that clipping the rect() region of a QDialog with
"setMask" causes the window frame to disappear and I can't find a way to
restore it. I'm using Qt4.5.x on a Linux machine. The documentation
for QWidget says this about setMask: "If the region includes pixels
outside the rect() of the widget, window system controls in that area
may or may not be visible, depending on the platform." This should not
apply to my case since I'm clipping rect() only. Does anybody have a
solution?
My ultimate goal is to be able to clip the window frame as well, but I
could settle for the above solution. Does anybody have a solution that
involves clipping the window frame?
Thanks.
More information about the Qt-interest-old
mailing list