[Qt-interest] hide dock widget size grip

Tom thomashek at centrum.cz
Thu Apr 16 16:04:54 CEST 2009


I have tried to set some flags to make the dock widget frameless, but it haven't 
helped me. This can work for dialogs, but it does not work for dock widget, at 
least for me :(

QSizeGrip is used for windows and dialogs (it is shown in the lower right-hand 
corner), but for QDockWidget there is a slim line as a handle to resize it.
I would like to remove this one.

Any ideas?

Thanks,

   Tom

Andreas Diehl napsal(a):
> Hello Tom.
> The Qt docu about QSizeGrip tells us that it depends on the Qt::SubWindow flag (see http://doc.trolltech.com/4.4/qsizegrip.html#details). Try to remove that flag from your dock widget, perhaps it will work.
> 
> Good try,
> 	Andreas
> 
> -----Ursprüngliche Nachricht-----
> Von: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] Im Auftrag von Tom
> Gesendet: Donnerstag, 16. April 2009 14:01
> An: qt-interest at trolltech.com
> Betreff: [Qt-interest] hide dock widget size grip
> 
> Hello all,
> 
> I have a fixed size dock widget. When it is docked there's a couple of pixels wide size grip (slim line) visible to resize it.
> But I do not want this widget to be resized.
> 
> Is there any way how to hide/remove the size grip?
> 
> Many thanks,
> 
>    Tom
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> --
> Mit freundlichen Grüßen
> Andreas Diehl 
>  
> -------------------------- ABS -------------------------
> ABS Systemberatung OHG          Tel: +49 (0)7053/9290-03
> Hauffstr. 9                     Fax: +49 (0)7053/9290-
> D-75385 Bad Teinach-Zavelstein        http://www.abs.org
> Registergericht Calw HRA 1031
> [mailto:Andreas_Diehl at abs.org]
>  
> ----- Loesungen fuer den Maschinen- und Anlagenbau -----



More information about the Qt-interest-old mailing list