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

Application.font is not visible to QML tooling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 6.8.1
    • QML: Tooling
    • None

    Description

      See https://doc.qt.io/qt-6/qml-qtquick-application.html#font-prop

      I didn't check if the other properties have the same issue.

       

      Code

      import QtQuick
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
          title: Qt.application.font.family
      }
      

       

      Outcomes

      • The window title shows the default font family ("Segoe UI" on Windows) (Expected)
      • qmllint and qmlls say that the property is missing (Not Expected):
        Warning: C:/ProgramData/QtCreator/Links/0dfc17b9fe633cd6508d62423b0925eb/Main.qml:8:24: Member "font" not found on type "QQmlApplication" [missing-property]
            title: Qt.application.font.family
                                  ^^^^
        

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes