Results 1 to 4 of 4

Thread: QDockWidget moves out of screen

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QDockWidget moves out of screen

    Yes, I've noticed this too with tool windows.
    You can make it not resizable with setFixedSize( sizeHint ), or if you have a top layout in it the use QLayout::setSizeConstraint( QLayout::SetFixedSize ).
    The latter is preferred.

    Regards

  2. #2
    Join Date
    Aug 2006
    Posts
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDockWidget moves out of screen

    Quote Originally Posted by marcel View Post
    Yes, I've noticed this too with tool windows.
    You can make it not resizable with setFixedSize( sizeHint ), or if you have a top layout in it the use QLayout::setSizeConstraint( QLayout::SetFixedSize ).
    The latter is preferred.

    Regards
    Yes, I have tried with setFixedSize(sizeHint) and it didnt work.

    Will try the other.
    Thanks

  3. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QDockWidget moves out of screen

    Try setting the flags Qt::Tool if you want to use setFixedSize.

    Regards

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
  •  
Qt is a trademark of The Qt Company.