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

QGraphicsItem setCursor active even if item is disabled

    XMLWordPrintable

Details

    • Windows
    • d8688d44840dd3f2324769d10b927c442b42e2c0 (qt/qtbase/5.12)

    Description

      As mentioned in QTBUG-38077 and in the documentation of QGraphicsItem::setEnabled(), that for disabled items, mouse events will be discarded. But with QGraphicsItem, when the cursor is set using setCursor() for a disable item, the set cursor is shown for that item. Like:

          graphicItem->setEnabled(false);
          graphicItem->setCursor(Qt::WaitCursor);
      

      The cursor shouldn't change to Wait-cursor for a disabled item.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes