[Interest] Dock WIdgets

Bill Crocker william.crocker at analog.com
Mon Jun 23 14:58:53 CEST 2014


On 06/23/2014 08:51 AM, Graham Labdon wrote:
> Hi
> Thanks for your answer
> I am not sure how to move the dock widget onto the stack widget
> Would you please expand on what you mean
>

Probably use a QStackedLayout for the mainWindow and
move the dockable widget back and forth between the
dock-context-layout and mainWindow-context-layout.

     int QStackedLayout::addWidget ( QWidget * widget )
     void QStackedLayout::setCurrentWidget ( QWidget * widget )

Bill

> Thanks again
>
> -----Original Message-----
> From: interest-bounces+graham.labdon=avalonsciences.com at qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences.com at qt-project.org] On Behalf Of william.crocker at analog.com
> Sent: 23 June 2014 13:12
> To: interest at qt-project.org
> Subject: Re: [Interest] Dock WIdgets
>
> On 06/23/2014 06:50 AM, Graham Labdon wrote:
>> Hi
>> I am investigating the behaviour of dock widgets.
>> I am trying to achieve the following - 1. Have a set of tabbed dock
>> widgets positioned at the bottom of mainWindow 2. Have each of the
>> tabbed dock widgets floatable but not moveable 3. Have the dock
>> widgets always take up the entire space of the mainWindow
>>
>
> Implement the mainWindow as a stacked widget (or layout).
> Move your dock widget on and off
> the top of the stack as required.
>
>> 1&   2 are easy to implement but I am struggling with 3.
>>
>> Does anyone have any hints on how I can achieve this.
>>
>> Thanks
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Bill Crocker
Work: (781) 937-1382 (WILM 6500)
Home: (978) 686-3277



More information about the Interest mailing list