Results 1 to 5 of 5

Thread: Individual Design of QMainWindow with QDockWidget

  1. #1
    Join Date
    May 2011
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Individual Design of QMainWindow with QDockWidget

    Hello everybody,


    I want to design the layout of my MainWindow (inherited by QMainWindow) as fellow:
    By default, a QDockWidget cant work in a QMainWindow which has a seperate layout, as I know. And the
    QDockWidget on a side displace that one at the bottom or at the top. I hope you can change these kind of attitude.

    Is it possible to order the single QWidgets as the upper image shows it ?
    If Yes, please let me know, how.
    Thanks a lot.




    Many
    regards,


    Matthias

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Individual Design of QMainWindow with QDockWidget

    looks like the imgae has a problem loading, could you load it again.

  3. #3
    Join Date
    May 2011
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Individual Design of QMainWindow with QDockWidget

    Quote Originally Posted by Santosh Reddy View Post
    looks like the imgae has a problem loading, could you load it again.
    Sorry I don't know what you mean. It's displayed correctly in my browsers.
    Here is the direct Linkof the image

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Individual Design of QMainWindow with QDockWidget

    I don' think it is possible to put QWidget & QDockWidget in the same layout.

    Can do this by having eventhing as QWdigets, but this way you will be lose the QDockWidget behaviour for all widgets.

  5. #5
    Join Date
    May 2011
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Individual Design of QMainWindow with QDockWidget

    Ok, I can understand this behavior.

    But is it possible to order the QDockingWidgets as fellow:
    Qt Code:
    1. ____________________________________________________________
    2. | | | |
    3. | | | |
    4. | | | |
    5. | |_________________________________________| |
    6. | | | |
    7. | | | |
    8. | | | |
    9. | | | |
    10. | | | |
    11. | | | |
    12. | | | |
    13. | | | |
    14. | | | |
    15. | |_________________________________________| |
    16. | | | |
    17. | | | |
    18. | | | |
    19. ____________________________________________________________
    To copy to clipboard, switch view to plain text mode 
    Instead of:
    Qt Code:
    1. ____________________________________________________________
    2. | |
    3. | |
    4. | |
    5. |___________________________________________________________|
    6. | | | |
    7. | | | |
    8. | | | |
    9. | | | |
    10. | | | |
    11. | | | |
    12. | | | |
    13. | | | |
    14. | | | |
    15. |___________________________________________________________|
    16. | |
    17. | |
    18. | |
    19. ____________________________________________________________
    To copy to clipboard, switch view to plain text mode 
    ??

    Thanks a lot

Similar Threads

  1. Floating QDockWidget not re-docked by QMainWindow::restoreState
    By stefanadelbert in forum Qt Programming
    Replies: 14
    Last Post: 20th October 2016, 21:16
  2. unwanted QDockWidget resizing after QMainWindow::tabify()
    By alpinista in forum Qt Programming
    Replies: 0
    Last Post: 12th January 2011, 06:56
  3. QMainWindow ignores dynamically created, floating QDockWidget
    By stefanadelbert in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2010, 01:06
  4. Replies: 3
    Last Post: 5th October 2008, 23:41
  5. QMainWindow and its QDockWidget
    By Promethee in forum Qt Programming
    Replies: 2
    Last Post: 13th January 2006, 20:42

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.