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
Contributor
Posts: 10
Registered: ‎10-05-2012
My Device: Blackberry 10 Alpha
My Carrier: ATT
Accepted Solution

How to use 'Slate Pro' font in pure QML/Qt C++ app?

I want to use the BB10 default Slate Pro font style in my pure QML/Qt C++ app. Qt seems to see Slate Pro being available but specifying it in Text { font.family: "Slate Pro" } doesn't work, the font style is always the default one for pure QML.

 

Any suggestion on how to achieve that? Thanks in advance.

Developer
Posts: 103
Registered: ‎12-31-2012
My Device: Blackberry 9810
My Carrier: Verizon

Re: How to use 'Slate Pro' font in pure QML/Qt C++ app?

[ Edited ]

HI

 

Have you been able to use any other font from QML/QT for that matter. If not, I  think there is already a ticket opened for that issue...

 

Please see this http://supportforums.blackberry.com/t5/Cascades-Development/How-can-I-set-different-kind-of-fonts-to...

 

 

_Dishooom

Highlighted
Contributor
Posts: 10
Registered: ‎10-05-2012
My Device: Blackberry 10 Alpha
My Carrier: ATT

Re: How to use 'Slate Pro' font in pure QML/Qt C++ app?

Thanks for the pointer, however, the issue I have is in pure QML not Cascade.

But I found out that the default font for pure QML is already 'Slate Pro'.... : )

And I indeed can change QML default text style by using QApplication::setFont()