Results 1 to 7 of 7

Thread: Problem with nested dock (Border Related).

  1. #1
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with nested dock (Border Related).

    Hello Friends,

    I am facing a problem related to nested dock.

    I am having a mainwindow application with only dockwidgets. I have used leftdock and rightdock area for the widget.

    While loading the application I am getting the proper layout. But when I move any window from right area to left area and makes the windows as nested then nested window is displayed at the border and due this sizing/resizing got affected.

    Is there any possible solution for this problem.

    I am using QT 4.7.0 with Visual Stusio.

    I have attached the images along with the post.

    1.jpg
    2.jpg
    3.jpg

    Note: Here I have just given the color to the widget but actually dock widget contains complex drawing and controls.

  2. #2
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with nested dock (Border Related).

    The problem looks like that the back window is not properly positioned...But I am not able to figure out the solution of this problem...Is there any way to avoid it

  3. #3
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with nested dock (Border Related).

    QMainWindow::dockOptions-prop
    QMainWindow::DockOption-enum
    disable QMainWindow::AllowTabbedDocks.
    Last edited by MarekR22; 11th May 2011 at 11:42.

  4. #4
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with nested dock (Border Related).

    Quote Originally Posted by MarekR22 View Post
    QMainWindow::dockOptions-prop
    QMainWindow::DockOption-enum
    disable QMainWindow::AllowTabbedDocks.

    Hi MarekR22,

    Thanks for the reply but if I will disable the "AllowTabbedDocks" and set the mainwindow option as:

    setDockOptions(QMainWindow::AnimatedDocks);

    then nesting will not enable for docks.

  5. #5
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with nested dock (Border Related).

    So what is you problem? I thought that you where surprised by this tabs.
    What do you mean by "then nested window is displayed at the border and due this sizing/resizing got affected"? What is wrong with it?

  6. #6
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with nested dock (Border Related).

    Hi MarekR22,

    Once again thanks for the reply...

    The problem is that when I moved one dock-widget to the another dock-widget (Say 2'nd is docked to 1'st) then in such case consider 2nd dock is active (it is on 1'st dock), then the 1'st dock widget slightly comes to down with respect to the 2nd one and it extended from the border of 2'nd dock.

    Due to this I did not get gap after the dock widgets and resizing is not possible with another docks (Weird images behind nested docked windows - between separation lines and no arrow indicators in this area). Please refer the 3rd image that I have attached along with the post.

  7. #7
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with nested dock (Border Related).[SOLVED]

    Finally I identified the problem...Problem was the move event for the dock widgets. Because of the move event the "Weird" behavior was coming.

    Once again thanks for your suggestion on this issue...Thanks

Similar Threads

  1. forcing dock windows to dock?
    By eric_vi in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2009, 15:32
  2. Dock widget between widgets, not near the border
    By maverick_pol in forum Qt Programming
    Replies: 0
    Last Post: 22nd May 2009, 13:23
  3. Show dock widget frame/border
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 21st May 2009, 10:04
  4. Dock Nesting Problem
    By blaylockr in forum Newbie
    Replies: 4
    Last Post: 14th August 2008, 13:59
  5. Dock widgets PROBLEM
    By L1L0 in forum Qt Programming
    Replies: 8
    Last Post: 7th April 2006, 18:29

Tags for this Thread

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.