Text's fontFamily property invalid in QML



  • Text's fontFamily property invalid in QML

    I used Text in a qml file like this:

    Text{
           id: text
           font.family: "Roboto-Regular"
    }
    

    When I used the qt-mingw, it can show correctly, but when I used the qt-msvc. It show the qt's default font family. Please help me, thanks



  • Looks strange. There is one example called fontDatabase in Qt examples. Can you compile in msvc and check this font is available ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.