[Interest] Generate key press events in c++ for a Quick2-application?

2013-08-30 Thread Ola Røer Thorsen
I need to generate key press events in c++ (based on packets received 
via udp), so that these behave like regular key presses in a 
Quick2-based application. The target platform has a rather specialized 
non-standard keyboard.

I have found some examples on how to do this with widgets, but these 
don't seem to work with Quick2.

Is this possible at all? Does any of you know how to do it?

Thanks!


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Generate key press events in c++ for a Quick2-application?

2013-08-30 Thread Tomasz Olszak
2013/8/30 Ola Røer Thorsen o...@silentwings.no

 I need to generate key press events in c++ (based on packets received
 via udp), so that these behave like regular key presses in a
 Quick2-based application. The target platform has a rather specialized
 non-standard keyboard.

 I have found some examples on how to do this with widgets, but these
 don't seem to work with Quick2.

 Is this possible at all? Does any of you know how to do it?

 Thanks!


 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest


See for example:
https://qt.gitorious.org/qt/qtquickcontrols/source/c304d741a27b5822a35d1fb83f8f5e65719907ce:tests/auto/applicationwindow/tst_applicationwindow.cpp

-- 
regards / pozdrawiam, Tomasz Olszak
Qt for Tizen | http://qt-project.org/wiki/Tizen
Qt Certified Developer | http://qt-project.org
http://linkedin.com/in/tolszak
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Generate key press events in c++ for a Quick2-application?

2013-08-30 Thread Ola Røer Thorsen

Brilliant, it works, thanks :-)


Den 2013-08-30 14:24, skrev Tomasz Olszak:
2013/8/30 Ola Røer Thorsen o...@silentwings.no 
mailto:o...@silentwings.no


I need to generate key press events in c++ (based on packets received
via udp), so that these behave like regular key presses in a
Quick2-based application. The target platform has a rather specialized
non-standard keyboard.

I have found some examples on how to do this with widgets, but these
don't seem to work with Quick2.

Is this possible at all? Does any of you know how to do it?

Thanks!


___
Interest mailing list
Interest@qt-project.org mailto:Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


See for example:
https://qt.gitorious.org/qt/qtquickcontrols/source/c304d741a27b5822a35d1fb83f8f5e65719907ce:tests/auto/applicationwindow/tst_applicationwindow.cpp

--
regards / pozdrawiam, Tomasz Olszak
Qt for Tizen | http://qt-project.org/wiki/Tizen
Qt Certified Developer | http://qt-project.org http://qt-project.org/
http://linkedin.com/in/tolszak


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest