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
awx
New Contributor
Posts: 3
Registered: ‎04-15-2012
My Device: Playbook
My Carrier: None

Is it possible to get the screen window group from qt?

I am trying to add an additional screen to my application which is running qt, however I can not get the screen to display unless its in the same group as the qt screen.

Is there a way to determine the qt screen group, either by using the handle to the window or some other method?

 

Developer
Posts: 62
Registered: ‎03-31-2012
My Device: Playbook
My Carrier: None

Re: Is it possible to get the screen window group from qt?

awx
New Contributor
Posts: 3
Registered: ‎04-15-2012
My Device: Playbook
My Carrier: None

Re: Is it possible to get the screen window group from qt?

Changing a windows zposition will work in making the window visible, but I dont think its the correct way to have my window made visible as then I would be acting as a window manager.

 

What does work is if I just get the winId() and join that window to a group, then I can join a non Qt window to the same group. However I was under the impression that Qt was already adding the window to a group and that its best to use that same group.

Highlighted
New Contributor
Posts: 7
Registered: ‎04-06-2012
My Device: Playbook
My Carrier: AT&T

Re: Is it possible to get the screen window group from qt?

If you are using blackberry.so as the plugin, Qt indeed created a window group.

 

But if this is the case, the group name is thus created by QUuid::createUuid, so it is kind of random (the intention I think is that the group name is unique regard the apps on your device).  Also the group name seems not be a property of any window, so you are not able to retrieve it even if you have a handle of window.

 

So simply put, I didn't know a way to do this without modifing the source code of the plugin (to let it set a group name you provide, or let it save the group name it uses so you know...).