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

QDeclarativePropertyMap subclasses have wrong metaObject()

    XMLWordPrintable

Details

    Description

      Subclasses of QDeclarativePropertyMap have a wrong metaObject(): instead of returning the metaObject of the subclass, QDeclarativePropertyMap's metaObject() is returned.

      I noticed this because I added a slot called "
      onOriginChanged()" to my subclass, but then I cannot connect a signal to it:

      Object::connect: No such slot QDeclarativePropertyMap::onOriginChanged()

      It seems that QDeclarativePropertyMap plays some weird tricks with the QObjectPrivate structure.

      Attachments

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

        Activity

          People

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            mardy Alberto Mardegan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes