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

Property declaration without READ/WRITE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.1
    • 4.5.3
    • Core: Object Model
    • None
    • 0414a73942272d8e863e464b3fbffeb9982964c1

    Description

      A property declaration without READ/WRITE operations in the base class leads to a bug in setProperty for a different property (with READ/WRITE) in a derived class. Looks like the assignment is simply ignored - maybe because of a wrong sanity check.
      Adding a second property declaration with READ/WRITE in the base class fixes the bad assignment.

      In our situation we only need to check if a property exists, but of course one can argue that a declaration without READ/WRITE operations doesn't make much sense. Nevertheless it shouldn't break other completely valid property declarations.

      The attached code demonstrates the problem.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes