04-27-2012 10:13 PM
Has anyone got the Swipe Down gesture to work with Qt? I tried using the native events but it appears QApplicationgets the events somehow (using QCoreApplication I was able to receive the Swipe Down event). Maybe there is something in QApplication that we can override/implement?
Nic
Solved! Go to Solution.
05-01-2012 02:12 AM
05-01-2012 03:12 PM
For the swipe down menu in Qt you need to listen for Qt::Key_Menu or in QML you can use Qt.Key_Menu. I have tested both of these and they work perfectly for me.
05-01-2012 05:17 PM
Good to know!
So to add options to the swipe down menu I assume it can be done like with the stanard Qmenu() or menuBar() with addAction() addSeperator() etc?
Cheers,
Jon
05-01-2012 10:58 PM
Thanks! I just come on here to report that I had found it myself but it appears I could have saved some brain power.
For my menu I created a Widget and placed my buttons and such there. I thought the normal Qt menu stuff would be too small and PC centric.
a month ago
I am sorry to bring this old thread up but on the latest 10.1.0.1720 SDK my QMainWindow receives QEvent:
latformPanel when I swipe up-down to bring menu up and no Qt::Key_Menu events. Has anything changed?
a month ago
I believe it has!
I'm still compiling code with 10.0.9 SDK but I have a device with 10.1.0.1720 installed and it no longer responds to swipe down events as a Menu key.
a month ago
Thanks for confirming. I've spent good hour trying to figure out why it works for other people but not for me.