Results 1 to 6 of 6

Thread: Floating windows constrained to within the MainWindow?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 21 Times in 21 Posts

    Default Re: Floating windows constrained to within the MainWindow?

    You can use QDockWidget, it seems to be the easiest solution

    By the way, you can prevent docked widgets from floating outside of the mainwindow :

    Qt Code:
    1. dockwidget->setFeatures( QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable)
    To copy to clipboard, switch view to plain text mode 

    Just omit the feature
    Qt Code:
    1. QDockWidget::DockWidgetFloatable
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to guilugi for this useful post:

    fnmblot (10th July 2007)

Similar Threads

  1. Floating MainWindow on OS X
    By dvmorris in forum Qt Programming
    Replies: 7
    Last Post: 14th May 2007, 09:11

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.