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

Assertion in QQmlPropertyData::setOverrideIndex

    XMLWordPrintable

Details

    • All
    • d6961c09de (qt/qtdeclarative/dev) d6961c09de (qt/tqtc-qtdeclarative/dev) 639920a27f (qt/tqtc-qtdeclarative/6.2) a6aeb9df47 (qt/qtdeclarative/6.4) a6aeb9df47 (qt/tqtc-qtdeclarative/6.4) 639920a27f (qt/tqtc-qtdeclarative/6.2.7)

    Description

      When building Qt in debug mode my application runs into the following assertion:

      ASSERT: "idx != m_coreIndex" in file qtbase/include/QtQml/6.4.1/QtQml/private/../../../../../../qtdeclarative/src/qml/qml/qqmlpropertydata_p.h, line 243

      The assertion is related to having READ/WRITE accessors of a property also being defined as Q_INVOKABLE.

      Of course this does not make much sense and can be solved easily by simply removing the Q_INVOKABLE keyword. However it took me some time to find the reason for the assertion and I thought it is worth to at least report it.

      class Gradient
      {{{}}
          Q_GADGET

          Q_PROPERTY( QVector< Stop > stops READ stops WRITE setStops )

        public:

           Q_INVOKABLE void setStops( const QVector< Stop >& );
           Q_INVOKABLE const QVector< Stop >& stops() const;

      };

       

      Attachments

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

        Activity

          People

            sami.shalayel Sami Shalayel
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes