Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, March 2008
App with only dockwidgets and no central widget


Message 1 in thread

Is it piossible to create an application with only dockwidget and no central 
widget? I like the use of dockwidgets and all the automatic resizing, tabbing 
etc. goodness of the dockwidgets. But since all my widgets are now in 
dockwidgets, i have n need for a central widget. The problem here is that 
dockwidgets only dock to the edges of the screen. The bigger issue is that 
there is no resizing of the dockwidgets to fill the central area of the 
window.
-- 
 [ signature omitted ] 

Message 2 in thread

Yes you can, set the central widget to NULL (or rather just don't set
it at all) and use QMainWindow->setDockNestingEnabled(true) to enable
nesting of docks. That means you're not limited to one row / column of
docks on each edge of the window anymore.

There are a few bugs that show up sometimes, but aside from that this
method seems to work great here.


On Sun, Mar 30, 2008 at 7:18 AM, kitts <kitts.mailinglists@xxxxxxxxx> wrote:
> Is it piossible to create an application with only dockwidget and no central
> widget? I like the use of dockwidgets and all the automatic resizing, tabbing
> etc. goodness of the dockwidgets. But since all my widgets are now in
> dockwidgets, i have n need for a central widget. The problem here is that
> dockwidgets only dock to the edges of the screen. The bigger issue is that
> there is no resizing of the dockwidgets to fill the central area of the
> window.
> --
> Cheers!
> kitts
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 3 in thread

On Monday 31 March 2008 06:23:03 Stukfruit xxx wrote:
> Yes you can, set the central widget to NULL (or rather just don't set
> it at all) and use QMainWindow->setDockNestingEnabled(true) to enable
> nesting of docks. That means you're not limited to one row / column of
> docks on each edge of the window anymore.

It is currently implemented without setting a central widget. However, what 
happens now is that the dock widgets do not default to filling this central 
space. I need to resize them so that they fill the space. They remember their 
size on next start so is it is not much of an issue as i only need to setup 
the UI on first launch.

> There are a few bugs that show up sometimes, but aside from that this
> method seems to work great here.
>
> On Sun, Mar 30, 2008 at 7:18 AM, kitts <kitts.mailinglists@xxxxxxxxx> wrote:
> > Is it piossible to create an application with only dockwidget and no
> > central widget? I like the use of dockwidgets and all the automatic
> > resizing, tabbing etc. goodness of the dockwidgets. But since all my
> > widgets are now in dockwidgets, i have n need for a central widget. The
> > problem here is that dockwidgets only dock to the edges of the screen.
> > The bigger issue is that there is no resizing of the dockwidgets to fill
> > the central area of the window.
-- 
 [ signature omitted ]