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

Diagramscene's Arrow class has slots but isn't a QObject

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.4
    • 4.6.2
    • Examples and Demos
    • None
    • 377e3e39c03364705a0c9e066350cf2cd24c5647

    Description

      The 'Arrow' class in the Diagramscene example has a slot:

      class Arrow : public QGraphicsLineItem
      {
      ...
      public slots:
      void updatePosition();
      ...
      };

      However, since the class does not inherit from QObject, it cannot use slots.

      Attachments

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

        Activity

          People

            boddie David Boddie (Inactive)
            fedcer Federico Cerisola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes