I would like to add a QSlider in a QToolButton just like volume control in windows OS. Can any body help me how to achieve this in Qt?
Asked
Active
Viewed 606 times
1
-
Do you mean that you want to add it to a QToolBar, or really "in" a QToolButton? – Mat Sep 13 '11 at 12:22
-
yes, i want to add a Qtoolbutton to Qtoolbar and a click on toolbutton should open the vertical qslider. And the problem i have is qtoolbutton menu accepts only actions not widgets. – user942502 Sep 13 '11 at 12:38
1 Answers
4
I believe what you are looking for is QWidgetAction.
It essentially allows you to place a QWidget
into a QAction
.

Abderrahmene Rayene Mihoub
- 1,875
- 3
- 6
- 19

Chris
- 17,119
- 5
- 57
- 60