1

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?

Mat
  • 202,337
  • 40
  • 393
  • 406
user942502
  • 111
  • 1
  • 7
  • 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 Answers1

4

I believe what you are looking for is QWidgetAction.

It essentially allows you to place a QWidget into a QAction.

Chris
  • 17,119
  • 5
  • 57
  • 60