[email protected]
[Top] [All Lists]

Re: QtDesigner[4.2.1]: Questions about QActionGroup and QDockWidget

Subject: Re: QtDesigner[4.2.1]: Questions about QActionGroup and QDockWidget
From: Andreas Pakulat
Date: Tue, 13 Mar 2007 16:28:07 +0100
On 13.03.07 05:41:57, Larry Bristol wrote:
> Andreas Pakulat wrote:
> > On 12.03.07 15:57:48, Larry Bristol wrote:
> >> 2) Where do you drop a QDockWidget so that it does not become part of the
> >> central widget (making it rather useless)?
> > I think I don't get what you mean? You can only drop QDockWidgets in
> > QDockArea's in your application. You can't drop it on the main widget.
> I'm talking about adding a QDockWidget to a form in QtDesigner.  The
> instructions (in QtAssistant):
> "To add a dock widget, simply drag one from the Containers section of the
> widget box, and drop it onto the main form area. Just as with other
> widgets, its properties can be modified with the Property Editor."
> Unfortunately, when you drop it into the main form area, the QDockWidget
> becomes a child of centralWidget (even included in its layout), with some
> rather bizarre results.  You can resize the "so-called" dock window, and
> you can "undock" it (but only by using the button on the title bar).  But
> docked or not, you cannot move it.  And if you set the "floating" property,
> you won't even SEE it!
> Using "code" to add a QDockWidget as a child of the form (rather than the
> centralWidget) produces a normal dock window that works exactly as
> expected.  Personally, I don't see how a dock window could EVER work as a
> child of centralWidget, but perhaps my ignorance is showing.

nice catch. I think this is a bug in designer, so sending a bugreport to
qt-bugs at trolltech dot com is the right thing to do here.


You've been leading a dog's life.  Stay off the furniture.

To unsubscribe - send a mail to [email protected] with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>