+ Reply to Thread
Results 1 to 4 of 4

Thread: How to movable dock widgets?

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default How to create movable dock widgets?

    Hi,

    I am using Qt 4.0 and I am trying to create a main window with dock widgets using the Qt Designer. When the dock widgets are in float status, I cannot move/drag the widgets around. I have tried changing the QDockWidget::features to Floatable and different combinations of the Qt:ockWidgetAreas, but to no avail.

    Can someone please explain how to create movable widgets?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to movable dock widgets?

    did you have a look at the
    Dock Widgets Example


    Cheers

  3. #3
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to movable dock widgets?

    I have tried following the example here:
    http://doc.trolltech.com/4.1/mainwin...ckwidgets.html

    But it does not demonstrate how do it using Qt Designer.
    Is this possible using with Qt 4.0?

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to movable dock widgets?

    in QT4.1.1 it is possible :

    set the docked property to true
    and set the dockWidgetArea to the position you want to start with.

    Afterwards you can drag it to other positions or get it floated.

    Cheers

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 16th May 2008, 15:39
  2. Applying size constraints to dock widgets
    By fullmetalcoder in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2007, 14:22
  3. hideEvent not propagated to tabified dock widgets
    By spud in forum Qt Programming
    Replies: 2
    Last Post: 4th October 2007, 10:00
  4. How to create a movable border between two widgets?
    By Teuniz in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2007, 09:45
  5. Dock widgets PROBLEM
    By L1L0 in forum Qt Programming
    Replies: 8
    Last Post: 7th April 2006, 19:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts