Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Text's fontFamily property invalid in QML

Text's fontFamily property invalid in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
font familytextqml
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wangzhe
    wrote on last edited by p3c0
    #1

    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

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

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

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved