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
Forum Updated to NodeBB v4.3 + New Features

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 23 Oct 2017, 10:29 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
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 24 Oct 2017, 01:40 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

      1/2

      23 Oct 2017, 10:29

      • Login

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