^NyAw^
3rd December 2009, 18:53
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()));
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,
m_pqAction = new QAction(tr("Lock"),this);
m_pqAction ->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_7));
connect(m_pqAction ,SIGNAL(triggered()),this,SLOT(lock()));
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,