PDA

View Full Version : Add a layout in a QToolbar



franco.amato
15th October 2010, 19:59
Hi,
I would layout 4 controls in a grid and add it to the toolbar of my application but in the documentation I didn't find a addLayout, only a addWidget, so I would know how can I solve my problem.

Thank you

SixDegrees
15th October 2010, 20:10
Go back and read the documentation again.

wysota
15th October 2010, 21:20
Hint: what do you apply layouts on?

franco.amato
15th October 2010, 21:57
Hint: what do you apply layouts on?
I would layout 2 QLabels and 2 QLeds

(row 1, col 1) a label - ( row 1, col 2) a QLed
(row 2, col 1) a label - ( row 2, col 2) a QLed

and put all this in a QToolbar.


Go back and read the documentation again.

Already read.
Maybe does I need an oculist?

wysota
15th October 2010, 23:57
I would layout 2 QLabels and 2 QLeds

(row 1, col 1) a label - ( row 1, col 2) a QLed
(row 2, col 1) a label - ( row 2, col 2) a QLed

and put all this in a QToolbar.

What do you apply layouts on in general? Note, I'm not asking what you put into layouts.

franco.amato
16th October 2010, 18:41
What do you apply layouts on in general? Note, I'm not asking what you put into layouts.

In general I apply a layout on a QWidget right?

tbscope
16th October 2010, 18:54
In general I apply a layout on a QWidget right?

Yes, and what do you add to the toolbar? You already mentioned this in your first post.

franco.amato
17th October 2010, 01:09
Yes, and what do you add to the toolbar? You already mentioned this in your first post.

Ok now is clear, I have to create such widget and add it to the toolbar,
thank you