PDA

View Full Version : How can I set a layout to a dock inside Qt Designer?



ricardo
30th April 2009, 23:29
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.

Lykurg
1st May 2009, 00:00
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.

ricardo
1st May 2009, 00:42
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?

http://img8.imageshack.us/img8/6839/dibujozaf.png (http://img8.imageshack.us/my.php?image=dibujozaf.png)

Lykurg
1st May 2009, 09:09
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?

ricardo
1st May 2009, 10:17
Thanks a lot, you were right, I couldn't do it cause my dock was empty.

Thanks.