I have disabled QAction menu element:
QAction *item = new QAction(itemTitle);
item->setEnabled(false);
I use SLOT connection to call function after element was pressed, but it's works only for enabled elements:
QObject::connect(item, SIGNAL(triggered()), this, SLOT(func()));
My question is how can I trigger some function for disabled QAction element?
Qt 5.9.2, MSVC2017 64bit compiler
When a widget is disable, all mouse and keyboard events are also disable.
More info : http://doc.qt.io/qt-4.8/qwidget.html#enabled-prop