10-21-2013 03:20 AM
I need to show a label in seven segment display format. In 10.2 OS, I can do it by using fonts. But how can I do this in previous BB10 versions ? because fonts are not supported in them.
And there is a QtWidget called QLCDNumber through which a number can be shown in seven segment display. But it is a QtGui class. How can I use it in cascades application...?
Thanks in advance..!
10-21-2013 04:10 AM
I took a simplistic approach in this BlackBerry 10 NFC sample application and used a set of images
Maybe not applicable in your case but jus another option :-)
11-04-2013 12:07 PM
One thing to consider is using two images (horizontal bar, vertical bar) and make a "digit" Container. Then it is a simple matter of changing the opacity of the image based on the number. For example:
property int digit
opacity: ( (digit==0 || digit==2 || digit ==3 || digit == 5 || digit == 6 || digit == 7 || digit == 8 || digit ==9) ? 1 : 0