[Qt-interest] Opaque resize for dock widgets

Strahinja Markovic strahinja.markovic at gmail.com
Wed Dec 23 17:11:02 CET 2009


Hi all,

I have a QDockWidget, and it's docked on the left side of a QMainWindow. 
There's a divider between the dock and and main pane, and the main pane 
houses a QWebView.

Resizing a QWebView was painful in Qt 4.5, but it's bloody murder in Qt 4.6. 
This has been noted on the tracker 
(http://bugreports.qt.nokia.com/browse/QTBUG-5929).

So I want to disable opaque resizing. Now if that divider between the dock 
and the QWebView were a QSplitter, I could use setOpaqueResize( false ). But 
it's not. How can I work around that?

A related question would be how can I enable non-opaque resizing at the 
window level? I know Linux users can turn this on system wide, but I want to 
enable it for my application only, and on Windows and Mac too. 

Sincerely,

Strahinja Markovic



More information about the Qt-interest-old mailing list