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

Reply
Developer
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2
My Carrier: Orange
Accepted Solution

Global TextStyleDefinition method working with QML editor preview

Hey,

 

I would like to be able to define global TextStyleDefinition object which I could reference in many qml files. This I can do. But I'm looking for method that will work with QML preview in momentics - so I can see my changes live, without need to deploy.

 

Does anyone know of such method?

 

Thanks,

Michal

Developer
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2
My Carrier: Orange

Re: Global TextStyleDefinition method working with QML editor preview

bump

Developer
Developer
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -

Re: Global TextStyleDefinition method working with QML editor preview

afaik not possible. i wouldn't trust the qml previewer either with font sizes...they never looked the same when ran on actual device...(but then that was back in <beta3, haven't used qml previewer since then Smiley Happy

Highlighted
Developer
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2
My Carrier: Orange

Re: Global TextStyleDefinition method working with QML editor preview

I was afraid that was an answer. I was just hoping that maybe someone managed to hack a smart way around it Smiley Wink

 

It's also quite strange that we have to specify other sizes in pixels (eg. image sizes), but font size goes in points. It'll be a nightmare once they decide to change resolutions. Of course if they even get to this point, which I hope they will Smiley Wink