Results 1 to 5 of 5

Thread: How can I set a layout to a dock inside Qt Designer?

  1. #1
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile How can I set a layout to a dock inside Qt Designer?

    Hi all!

    How can I set a layout to a dock inside Qt Designer?
    I don't see the way to do this, however I can do it without problems on a window form.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How can I set a layout to a dock inside Qt Designer?

    It's is working like with an QFrame or any other widget. Focus our dock widget and choose your favorite layout from the top toolbar.

    And by the was: Qt Programming is the wrong forum for that question: Qt Tools would match better for these kind of questions.

  3. #3
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile Re: How can I set a layout to a dock inside Qt Designer?

    Quote Originally Posted by Lykurg View Post
    It's is working like with an QFrame or any other widget. Focus our dock widget and choose your favorite layout from the top toolbar.

    And by the was: Qt Programming is the wrong forum for that question: Qt Tools would match better for these kind of questions.
    I guessed the same. But layout menu appears deactivated/gray.

    Any idea?


  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How can I set a layout to a dock inside Qt Designer?

    The dockwidget you have chosen is empty, so it wont work. Chose a dock widget with childes in the "object explorer" on the right side, then it should work. which Version of designer do you use?
    Attached Images Attached Images

  5. The following user says thank you to Lykurg for this useful post:

    ricardo (1st May 2009)

  6. #5
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How can I set a layout to a dock inside Qt Designer?

    Thanks a lot, you were right, I couldn't do it cause my dock was empty.

    Thanks.

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Can I insert expanding layout in Qt Designer?
    By zolookas in forum Newbie
    Replies: 2
    Last Post: 6th October 2008, 18:17
  3. Resizing a QTreeWidget inside a layout
    By bruccutler in forum Qt Programming
    Replies: 11
    Last Post: 27th March 2007, 15:35
  4. How do I move a widget inside a grid Layout
    By barnabyr in forum Newbie
    Replies: 1
    Last Post: 8th May 2006, 23:23
  5. Replies: 1
    Last Post: 18th March 2006, 10:18

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.