Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141664

QQuickFontValueType: Expose QFont::families

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.0, 6.10.0
    • None

      In Qt 5, we could specify font family fallbacks with the QML font.family property:

      Text {
          text: "Hello 世界"
          font.family: "Comic Sans MS, Microsoft YaHei"
      }

      which is no longer valid in Qt 6. So that we need to introduce a new font.families property to expose the QFont::familes() and QFont::setFamiles() functions:

      Text {
          text: "Hello 世界"
          font.families: [ "Comic Sans MS", "Microsoft YaHei" ]
      }

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes