JoZCaVaLLo
29th March 2012, 15:17
Hi people!!!
I have a strange behaviour on MacOS X... On my QAction I have set the following
QAction my1Action = new QAction(this);
my1Action->setShortcut(Qt::Key_F9);
my1Action->setText(tr("My 1st action"));
connect(...)
QAction my2Action = new QAction(this);
my2Action->setShortcut(QSequence(Qt::SHIFT + Qt::Key_F9));
my2Action->setText(tr("My 2nd action"));
connect(...)
Now... why in my menu do I see the following???
(in the menu, F9 is replaced by a 8)...
7542
This happens only on Mac, on windows it works pretty well.
Thanks for any hint...
I have a strange behaviour on MacOS X... On my QAction I have set the following
QAction my1Action = new QAction(this);
my1Action->setShortcut(Qt::Key_F9);
my1Action->setText(tr("My 1st action"));
connect(...)
QAction my2Action = new QAction(this);
my2Action->setShortcut(QSequence(Qt::SHIFT + Qt::Key_F9));
my2Action->setText(tr("My 2nd action"));
connect(...)
Now... why in my menu do I see the following???
(in the menu, F9 is replaced by a 8)...
7542
This happens only on Mac, on windows it works pretty well.
Thanks for any hint...