I need to put a QPushButton inside a QMenu. Is it possible and, if so, then how?
QPushButton
QMenu
I want to achieve something like this:
If you only want a menu item to have a state, you may use Checkable property of QAction:
rotateAct = new QAction(QIcon(":/images/Mouse/Rotate.png"), tr("&Rotate"), this); rotateAct->setCheckable(true);