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

builtins.qmltypes: double is not real?

    XMLWordPrintable

Details

    • 06dc505b9490625141e54f992a2e818d5b6a8777 (qt/qtdeclarative/dev)

    Description

      According to documentation:
      https://doc.qt.io/qt-5/qtqml-typesystem-basictypes.html
      https://doc.qt.io/qt-6/qtqml-typesystem-basictypes.html

      There is:
      > double Number with a decimal point, stored in double precision

      So "double" is valid QML type, but wtih qtbase(659817e287c0948829b8d3c4239cc7fa6fcf70a2) and qtdeclarative(2181ef9d29c71273accab710a68907c5d42771db) in qml/builtins.qmltypes I got:

       Component {
              name: "double"
              prototype: "number"
              exports: ["QML/real 1.0"]
              exportMetaObjectRevisions: [256]
              accessSemantics: "value"
          }
      

      c++ double mapped only to "QML/real".
      I suppose it should be mapped into both "QML/real" and "QML/double",
      because of "double" also valid QML type.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes