View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1
Hi,

I would like the output of 'model.platform' to be displayed in bold font for easier viewing at a glance.

The code snippet as it stands;

Code:
            Label {
                id: platformLabel
                text: {
                    if  (model.platform ==="") platformLabel.text ="Platform -"
                    else platformLabel.text="Platform " + model.platform
                }
'model.platform' simply displays a number for the particular platform but how can I make it so the platform number is bold?

I found it easy enough to make the label 'Platform' show in bold by simply adding "<b>Platform</b>", but this doesn't apply with 'model.platform', how to proceed?

Thanks,
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following User Says Thank You to Markkyboy For This Useful Post: