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

failure to include qproperty_p.h gives unhelpful error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.0.0
    • Core: Object Model
    • None

    Description

      If one does not include "private/qproperty_p.h" and uses Q_OBJECT_COMPAT_PROPERTY, the error messages are not very helpful, e.g.:

      /home/andreasbuhr/development/qtdev/playground/main.cpp:23:44: error: ‘xProp’ has not been declared
      23 | Q_OBJECT_COMPAT_PROPERTY(MyClass, int, xProp, &MyClass::setX)

      Attachments

        1. CMakeLists.txt
          0.4 kB
        2. main.cpp
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fabiankosmale Fabian Kosmale
            andreasbuhr Andreas Buhr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes