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.
02-24-2013 11:44 PM
I need to display data from BlackBerry as the IMEI and Pin in my application, I read in class:
bb :: HardwareID :: Pin ();
But there appears to be using For Example in Labels.
Thanks and Regards
Solved! Go to Solution.
02-25-2013 01:22 AM
works for me
using namespace bb::device;
Q_DECL_EXPORT int main(int argc, char **argv)
example to retrieve the data in qml file
//display data on click
lbl0.text = "PIN: " + _hardware.pin
lbl1.text = "IMEI: " + _hardware.imei
02-28-2013 04:39 AM
Why not create the processorCount alone as a seperate propertyMap and pass it on the QML.
int i = hwInfo->processorCount(); QDeclarativePropertyMap* propertyMap = new QDeclarativePropertyMap; propertyMap->insert("processorCount", QVariant(QString::number(i))); qml->setContextProperty("hwInfo", propertyMap);
... and access the value from QML as :
I hope this helps...
Needless to say, kuroberry the way you have exposed the other properties was good...
05-03-2013 09:55 AM - edited 05-03-2013 09:57 AM
The tagged solution generates an error:
'qml' was not declared in this scope
Is it missing an include and/or namespace statement? I tried adding "#include <bb/cascades/QmlDocument>" but I still get the error.
05-03-2013 10:01 AM
05-07-2013 07:51 PM
07-25-2014 11:05 AM
Cool, I have this sort of working. If i use it to set the text of a button it works great. But, if I try to use it to build a string it doesn't.
So this is good:
But this is bad:
url: 'http://whatever' + _hardware.pin