I have a Qaction in a menu item to delete selected items in one of my views. This is how I create the action:
deleteAct = new QAction( tr("Delete Selected"), this); deleteAct->setShortcut(QKeySequence::Delete); connect(deleteAct, SIGNAL(triggered()), this, SLOT(deleteSelected()));
I am setting up a Delete Key which should trigger the delectAct action. It works most of the time, but in some cases it stops working ... Does anyone know why the shortcut will stop working?
Note: the action still works if I call it from a menu item. Its just a shortcut that doesn't ...
MBU
source share