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

SCRIPTABLE false seems to be ignored by QML

    XMLWordPrintable

Details

    Description

      In Qt/3D's QGLCamera class, I tried the following declarations (xEye is useful for C++ but unnecessary for QML because it can be written as eye.x in QML):

      Q_PROPERTY(qreal xEye READ xEye WRITE setXEye NOTIFY viewChanged SCRIPTABLE false)
      Q_PROPERTY(qreal yEye READ yEye WRITE setYEye NOTIFY viewChanged SCRIPTABLE false)
      Q_PROPERTY(qreal zEye READ zEye WRITE setZEye NOTIFY viewChanged SCRIPTABLE false)
      Q_PROPERTY(QVector3D eye READ eye WRITE setEye NOTIFY viewChanged)
      

      The "SCRIPTABLE false" didn't appear to do anything - the xEye and other properties were still settable from QML and could be modified with animations. Expected outcome: "No such property xEye".

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            rweather Rhys Weatherley (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes