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

Bug in moc for QGraphicsItem

XMLWordPrintable

      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.

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

            stormols Marius Storm-Olsen
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes