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

Can't load properties of Qt.locale()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.6
    • 6.5
    • QML: Compiler

    Description

      Taking 'name' as an example property

      import QtQuick
      
      Window {
          id: win
          width: 640
          height: 480
          visible: true
          title: "Sandbox"
      
          Text {
             text: Qt.locale().name
          }
      }
      

      which runs into

      Warning: main.qml:33:31: Property "name" not found on type "QLocale" [missing-property]
                  text: Qt.locale().name
                                    ^^^^
      Warning: main.qml:33:31: Could not compile binding for text: Cannot load property name from QLocale of QLocale. [compiler]
                  text: Qt.locale().name
                                    ^^^^

      . Same for all other properties.

      Attachments

        Activity

          People

            fabiankosmale Fabian Kosmale
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: