Results 1 to 4 of 4

Thread: Dock widget does not have a size slider

  1. #1
    Join Date
    Aug 2009
    Posts
    56
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Dock widget does not have a size slider

    I placed a dock widget in my QTWidget window. It's on the right side of the window. However, there is no slider along the left border of the dock widget to adjust how wide it is. It is only a fixed size.

    How can I force it to show the slider along the left border?
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Dock widget does not have a size slider

    Maybe a QDockWidget is only resizeable in a QMainWindow (just tried it in Designer; fixed size in QDialog; resizeable in QMainWindow)?

    Apart from that: I don't think the "slider" can be made visible. It is just there. The mouse cursor will change when it is over the "slider".

  3. #3
    Join Date
    Aug 2009
    Posts
    56
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: Dock widget does not have a size slider

    Maybe that's how it is then. I have one in a MainWindow as well, and it's slidable. But in this window it is not. Maybe someone can explain why this is.

  4. #4
    Join Date
    Feb 2008
    Posts
    98
    Thanks
    2
    Thanked 24 Times in 24 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Dock widget does not have a size slider

    Maybe a QDockWidget is only resizeable in a QMainWindow
    Exactly. You have to use a QMainWindow.

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. resizing widgets depending on a main widget size
    By luf in forum Qt Programming
    Replies: 6
    Last Post: 10th October 2009, 16:13
  3. Replies: 2
    Last Post: 23rd March 2009, 17:26
  4. sliding dock widget
    By manishkyl in forum Qt Programming
    Replies: 0
    Last Post: 28th July 2008, 14:04
  5. Simple custom widget won't size properly
    By MrGarbage in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2007, 13:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.