Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 72
Registered: ‎09-30-2011
My Device: Bold 9930 & PlayBook
My Carrier: Sprint
Accepted Solution

Qt and Swipe Down

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

Highlighted
Developer
Posts: 92
Registered: ‎10-30-2011
My Device: Blackberry Playbook
My Carrier: Telstra LTE

Re: Qt and Swipe Down

I haven't checked out QtCore, but I would assume it would appear as an event like you were able to find.

If you add the cascades lib to your QtQuick project, you can use the swipeDownQml() event.
Contributor
Posts: 13
Registered: ‎02-17-2012
My Device: Torch 9600, Playbook
My Carrier: Rogers

Re: Qt and Swipe Down

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.

Developer
Posts: 188
Registered: ‎01-27-2012
My Device: playbook
My Carrier: ...

Re: Qt and Swipe Down

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

Developer
Posts: 72
Registered: ‎09-30-2011
My Device: Bold 9930 & PlayBook
My Carrier: Sprint

Re: Qt and Swipe Down

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. 

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Qt and Swipe Down

I am sorry to bring this old thread up but on the latest 10.1.0.1720 SDK my QMainWindow receives QEvent:Smiley TonguelatformPanel when I swipe up-down to bring menu up and no Qt::Key_Menu events. Has anything changed?

Developer
Posts: 92
Registered: ‎10-30-2011
My Device: Blackberry Playbook
My Carrier: Telstra LTE

Re: Qt and Swipe Down

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.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Qt and Swipe Down

Thanks for confirming. I've spent good hour trying to figure out why it works for other people but not for me.