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

Could not compile binding for time

    XMLWordPrintable

Details

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

    Description

      Using date object like in

      import QtQuick
      
      Window {
          id: root
          width: 640
          height: 480
          visible: true
          title: "Foo"
      
          property date time: new Date()
      
          Component.onCompleted: console.log(time)
      }
      

      compiles to

      Error: main.qml:10:24: Could not compile binding for time: Cannot generate efficient code for Construct
          property date time: new Date()
                                  ^^^^

      . I guess that's no binding in this case, just an object assignment.

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: