Results 1 to 2 of 2

Thread: Embed dialog in main window

  1. #1
    Join Date
    Mar 2010
    Posts
    21
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Embed dialog in main window

    Hi,

    I've got a Qt app here that has grown quite large already. Especially the number of dialogs that the user has open simultaneously has increased drastically.
    So I want to do some redesign and embed some of the dialogs into the main window. Of course, just adding a dialog to the main window's layout doesn't work. But is there another simple way to do this? I'd like to change as little code as possible...

    Cheers,
    fallen

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Embed dialog in main window

    Hi, you can use QDockWidgets. Change your dialog's base class to QWidget and create a new dock window for some/each/the-number-you-like dialogs.

    Ginsengelf

Similar Threads

  1. Replies: 4
    Last Post: 10th February 2010, 07:56
  2. Embed QWebView into non-QT Win32 window (whole window)
    By sonusingh in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2010, 12:40
  3. Qt 4.6.0: Opening a dialog from a main window
    By dmginc in forum Qt Programming
    Replies: 3
    Last Post: 14th January 2010, 13:16
  4. Replies: 11
    Last Post: 11th August 2008, 10:14
  5. Crash during sending list from dialog to main window
    By Djony in forum Qt Programming
    Replies: 5
    Last Post: 23rd November 2006, 20:43

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.