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 control does not inherit parent's font.
Forum Updated to NodeBB v4.3 + New Features

Text control does not inherit parent's font.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 920 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by
    #1

    I have Text control and Button inside the same parent in QML. When I change parent's font.PixelSize, Button's font size is changed, but Test's font size is not. I use QT 5.10.1 and Quick Controls 2.0.

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      Text is a primitive type and part of Qt Quick core. It doesn't have font inheritance, like the Qt Quick Controls 2 types have. You can use Label from QQC2 instead.

      1 Reply Last reply
      1

      • Login

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