[Qt-interest] keyboard events

Giancarlo Amati ilferraresebono at hotmail.it
Mon Apr 27 12:04:17 CEST 2009


Hello,
sorry to bother everybody with this "silly" question but I can't find anything adressing me to the keyboards event management:
I have a CMainWindow derived from QMainWindow class. now, I want connect my class to the keyboard events. So I'll call:

        QObject::connect(this,SIGNAL(keyPressEvent(QKeyEvent *)),this,SLOT(getKeyboardPressed(QKeyEvent *)) );

where this is the pointer to an object beloging to CMainWindow class. Now, what happens is that I received a warning message saying that there is now keyPressEvent method decleared...how? I've checked the QWidget class and actually there is one :(

Many thanks.
GC.

_________________________________________________________________
25 GB di spazio gratuito su Internet! Prova SkyDrive
http://clk.atdmt.com/GBL/go/140630371/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090427/f2becaa7/attachment.html 


More information about the Qt-interest-old mailing list