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

Could not compile binding for time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF
    • 6.4.1
    • QML: Compiler
    • 0f23346d2a660404d40d02a2d101eb4fc21c8b02

    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

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

        Activity

          People

            ulherman Ulf Hermann
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes