Hi Jarek,

WindowDock & DockWidget both have a minimum sixe set on the form of
width 135 x height 0. The only difference is that inside the windowdock
is a manageGroupBox with a minimum size set 115 x 100, whereas the
dockwidget contains sliders with minimum size 30 x 100. 

If you try and float both docking windows, each will attempt to resize
according to it's minimumSizeHint(). The windowdock is fine but the
dockwidget (previously polygon) is sized to zero & disappears.

This is the behaviour I see using Qt 4.4.1 on Windows built with MinGW
3.4.2 & on Linux Redhat (gcc3.2) & SuSE (gcc4.3). In all cases the patch
supplied resolves the issue. Are you seeing something different?

Regards
DaveR

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jarek
Kobus
Sent: 27 August 2008 13:01
To: [email protected]
Subject: Re: [Qt4-preview-feedback] Designer
generatedQDockWidget'sdisappear when floating in Qt4.4.1

On Wednesday 27 August 2008 10:21, you wrote:
> Hi Jarek,
>
> Please find a modified example attached. Apologies for not explaining 
> in the original email that when floating the docking window, I reset 
> it's size using the minimumSizeHint() in order to eliminate the 
> expanding effect of floating docking widgets off the same docking
area.
>
> Wrt multiple docking widgets in the same docking area, why is it that 
> when the docking widget's size policy is minimum it does not display 
> on first show() at it's minimum size?
>
> The use case I have is when another docking widget in the same area is

> expanding, so I want this dock to take up the remaining area. I cannot

> programmatically set the docking area splitter (or can I?), so the 
> only way I get the initial layout I want is to set the non expanding 
> dockwidget size policy to fixed. This doesn't seem right & is not 
> consistent with form layout rules.

I'm still not sure what the issue is. I saw your windowForm has
minimumSize set to 135x124, while sizeHint for that form returns 135x146
(in plastique style). Is your intention to have 135x124 on start up?

> On Friday 22 August 2008 14:50, Robinson, David wrote:
> > This problem has been introduced in Qt4.4.1. Please find a patch 
> > attached & example ui file with which to reproduce the issue.
> >

I compiled & run your modified example on different qt versions (4.4.0
and 4.4), and I don't see any difference in behaviour. Am I missing
something?

Jarek
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback


 Scanned for viruses by BlackSpider MailControl


Please refer to www.anite.com for individual Anite company details. The 
contents of this e-mail and any attachments are for the intended recipient 
only. If you are not the intended recipient, you are not authorised to and must 
not disclose, copy, distribute, or retain this message or any part of it. It 
may contain information which is confidential and/or covered by legal 
professional or other privilege. Contracts cannot be concluded with us nor 
legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187

Scanned for viruses by BlackSpider MailControl.

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to