[Qt-interest] dockwidget problem

David Boosalis david.boosalis at gmail.com
Wed Oct 20 18:13:39 CEST 2010


For your QMainWindow.  You need to add something like
 addDockWidget(Qt::BottomDockWidgetArea,myDock);

On Wed, Oct 20, 2010 at 2:29 AM, Sujan Dasmahapatra <sdh at lmwindpower.com>wrote:

>  Dear Friends
>
> In my QMainwindow i have QGraphicsView and QTreeWidget, I want these
> widgets to dockable and resizable, I am trying like this
>
>
>
> QTreeWidget *treeWidget = new QTreeWidget(this)
>
> QDockWidget dock(this,QT::Window);
>
> dock.setWidget(treeWidget);
>
> dock.show();
>
>
>
> QGraphicsView *view = new QGraphicsView(this)
>
> QDockWidget dock(this,QT::Window);
>
> dock.setWidget(view);
>
> dock.show();
>
>
>
> But this is not working can someone give me some hints how could I achieve
> this. Thanks in advance
>
>
>
>
>
> Kind Regards,
>
>
>
>
>
> *Sujan Dasmahapatra
> *Project Leader, Aero Group
> Aero Group
>
> Tel    +91 80 66470248
> Mob
>
> sdh at lmwindpower.com <%25EMAIL%25>
>
>
>
>
>
> *LM Wind Power Blades*
>
> lmwindpower.com
>  ------------------------------
>
>
>
> This e-mail and any attachments are confidential. If you are not the named
> or intended recipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose, or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101020/ee4b7b17/attachment.html 


More information about the Qt-interest-old mailing list