[Qt-interest] Fonts in Qml

Volodimir.Burlik at nokia.com Volodimir.Burlik at nokia.com
Fri Jan 21 19:17:33 CET 2011


Hi
I'm running QML application that creates a button with the text. Text's font is specified like this :
font: {
  ...
  weight: "Font.Bold"
}

During instantiation it crashes in QFont::setWeight(int weight) b/c weight is -1? What do I miss, why Font.Bold couldnt be found?

I'm using 4.7.1.

Thanks
Vlad



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110121/a139f113/attachment.html 


More information about the Qt-interest-old mailing list