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

Can't load properties of Qt.locale()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 6.6
    • 6.5
    • QML: Compiler

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes