Results 1 to 5 of 5

Thread: Programmatically Dock

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Programmatically Dock

    Hello Everybody,

    I need to programmatic-ally dock windows like this:
    DesiredDockWidgetbehavior.JPG

    But QT Designer does it like this:

    DefaultDockWidgetBehavior.jpg

    How do i programmatically do the desired behavior?

    Qt Only allows the mainWindow to call
    MainWindow->addDockWidget(static_cast<Qt:ockWidgetArea>(1), B);
    and
    MainWindow->addDockWidget(static_cast<Qt:ockWidgetArea>(1), A);

    I need to get control of how the two dock widgets are laid out.

    My Goal is to have complex layout like this:
    DesiredComplexDockWidgetbehavior.jpg

    The idea is that once the user does his thing, I need to save and recreate this layout.

    Any help is appreciated.


    --
    Regards,
    ven.
    Last edited by venkateshhegde; 13th February 2011 at 14:59. Reason: updated contents

Similar Threads

  1. How to programmatically add attachments to emails in Qt
    By Praveena pb in forum Qt Programming
    Replies: 2
    Last Post: 25th November 2010, 19:34
  2. Creating a button programmatically
    By Luc4 in forum Newbie
    Replies: 1
    Last Post: 27th January 2010, 10:30
  3. forcing dock windows to dock?
    By eric_vi in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2009, 15:32
  4. Replies: 3
    Last Post: 3rd September 2008, 16:41
  5. [?] Input text programmatically
    By XuTMAH in forum Newbie
    Replies: 3
    Last Post: 24th September 2007, 16:47

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.