[Qt-interest] Fw: capturing key events in the server, running embedded Qt on Linux
slheitz at rockwellcollins.com
slheitz at rockwellcollins.com
Tue Nov 17 19:50:07 CET 2009
in my server I have
server::qwsEventFilter(QWSEvent * event)
{
if (event->type == QWSEvent::Key)
{
now I know it is a key, so how would I use the QKeyEvent::Key() to get
what key?
}
}
Take a look at
QKeyEvent::key()
http://doc.trolltech.com/4.5/qkeyevent.html#key
On Tue, Nov 17, 2009 at 12:27 PM, <slheitz at rockwellcollins.com> wrote:
In my server application, which as no display. It lauches other
applications and sits in the background.
Im implementing qwseventfilter to capture system events. I want to
capture a few specific key events. I can see that a key event comes
through but how do I know what type of key it is?
I aso tried implementing keypressevent here but that didn't work, probably
because the server is not the main window. But I thought that all events
go through the server first.
I just need to capture a couple keys in my server.
Thanks
Sean
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091117/104ee5a3/attachment.html
More information about the Qt-interest-old
mailing list