Hi,
m_pqAction
= new QAction(tr
("Lock"),
this);
m_pqAction
->setShortcut
(QKeySequence(Qt
::CTRL + Qt
::Key_7));
connect(m_pqAction ,SIGNAL(triggered()),this,SLOT(lock()));
m_pqAction = new QAction(tr("Lock"),this);
m_pqAction ->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_7));
connect(m_pqAction ,SIGNAL(triggered()),this,SLOT(lock()));
To copy to clipboard, switch view to plain text mode
The connect returns true but the SLOT is never called.
Have I to add the action on a QToolBar to let it work? The other actions added to the QToolBar work well but this action have to not be shown.
Thanks,
Bookmarks