PDA

View Full Version : QPushButton QMenu QAction



hgedek
31st October 2007, 11:44
I will explain my problem with example.
My button is 220 pixel width.
I create a menu for it.And using setFixedWidth function I set width of menu to 220 pixel too.
But I couldnt orginize my actions width.They are all default size.So theh have 100 pixels size.So my actions label(names...) are shorter than menu width.And I want to learn to how to set size of actions same to menu.

hgedek
31st October 2007, 15:31
These are the pictures.

hgedek
1st November 2007, 12:29
I found thanks.I thought there is a delegate structure working background of all widgets.So I may change the settings of widgets using delegation.But I think this trick is only for views...