Results 1 to 6 of 6

Thread: Problem while Docking/Undocking of the QDockWidget on the default mainwindow "Central

Hybrid View

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

    Default Re: Problem while Docking/Undocking of the QDockWidget on the default mainwindow "Cen

    Quote Originally Posted by franz View Post
    Dock widgets are meant to be used around the central widget. Your implementation more or less asks for quirky behavior... What behavior do you want to achieve? Try to explain without mentioning dock windows. Just make some screen shots and choose a few easy-to-type-about names to clarify. Maybe someone can offer you a better solution to what you're trying to achieve.
    Thanks franz...

    Actually I have problem regarding to the positioning of the QDockWidget on the QMainWindow. I have 3 dockwidget in my main window [initially centre widget I put as 0]:

    maindock: left side
    rightdock: right side
    bottomdock: bottom side

    I have to position the dockwidget in some ratio (Say 3/4 width for maindock, 1/4 width for left dock and 100 px height for bottom widget).

    Now I want that when I close the "rightdock" and "bottomdock", then "maindock" should take the place of others, but reverse should not possible(i.e. when close "maindock" then "rightdock" and "bottomdock" should not resize). All the dockwidgets
    should have the docking features.

    To achieve this I have used the approach that I have mention in my initial post (i.e. if maindock will be member of the centre
    widget then I can achieve this, but the problem comes here...)

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem while Docking/Undocking of the QDockWidget on the default mainwindow "Cen

    So basically you want rightdock and bottomdock to be fixed size, and maindock to be expanding?
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

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

    Default Re: Problem while Docking/Undocking of the QDockWidget on the default mainwindow "Cen

    Quote Originally Posted by franz View Post
    So basically you want rightdock and bottomdock to be fixed size, and maindock to be expanding?
    Hi franz thanks for the reply...Actually I don't want that "rightdock" and "bottomdock" to be fixed size but it can be re-size by the user, but automatic they should not dock when maindock close(As dock feature). But both should have dock effects(like float etc...).

Similar Threads

  1. QDockWidget/Central Widget Problem
    By Lemming in forum Qt Programming
    Replies: 7
    Last Post: 3rd April 2016, 09:52
  2. QDockWidget : docking, reopening after closing
    By kghose in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2008, 20:22
  3. QDockWidget freezes desktop when undocking
    By pdolbey in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 14:47
  4. Replies: 6
    Last Post: 18th August 2006, 17:50
  5. different arrangement of QDockWidget than default
    By Wurgl in forum Qt Programming
    Replies: 3
    Last Post: 13th July 2006, 10:41

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
  •  
Qt is a trademark of The Qt Company.