[Qt-interest] Qkey shortcuts
André Somers
andre at familiesomers.nl
Wed Mar 17 20:48:26 CET 2010
Hi,
I am probably missing something, but somehow, the following code does not
work:
QAction* fullScreen = new QAction(this);
QKeySequence fullScreenSequence("CTRL+F");
fullScreen->setShortcut(fullScreenSequence);
connect(fullScreen,SIGNAL(triggered()), this, SLOT(toggleFullScreen()));
The slot toggleFullScreen is not triggered. I dont get any warnings
regarding a failed connect, and I am sure the code is executed (it is in the
constructor of my window).
Perhaps someone else has an idea what might be going wrong?
Thanks,
André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100317/30aa451e/attachment.html
More information about the Qt-interest-old
mailing list