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

Bug in moc for QGraphicsItem

    XMLWordPrintable

Details

    Description

      If the developer mistakenly tries to inherit QObject second in a class with multiple inheritance like this :

      class PointItem : public QGraphicsItem, public QObject
      {
      Q_OBJECT
      };

      the following error is produced when make is ran on the makefile generated by QMake :

      main.cpp:20: Warning: Class MyWidget inherits from two QObject subclasses QGraphicsItem and QObject. This is not supported!

      QGraphicsItem does not inherit QObject, so this error is incorrect.

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            dettman Dean Dettman (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