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. How to use text with 2 font family in single line
Forum Updated to NodeBB v4.3 + New Features

How to use text with 2 font family in single line

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 206 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.
  • Quang PhuQ Offline
    Quang PhuQ Offline
    Quang Phu
    wrote on last edited by
    #1

    Hi all,

    I want to use text line with 2 separate font family. I mean normal for for normal text and another font for icon (awesome font). So how can I do this in qml???

    I use Qt 5.14

    Thank you

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      Create a separate component extending Item and use Row or RowLayout as container. Add two Text elements to container and use property aliases in main Item to set text for each Text into container.

      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