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

Undocumented behavior for QGraphicsItem: opacity == 0 has the same effect as isVisible() == false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.1
    • 4.7.2, 5.4.0 Beta
    • Widgets: GraphicsView
    • None
    • 3f7e3b1c2450a0c241cbd3a5331484bfeea219f1

    Description

      For a QGraphicsItem, having opacity close to 0 has the same effect as having isVisible == false. Mouse events will go straight through it, QGraphicsScene::items(...) won't return it, etc.

      This important behavior is not documented in QGraphicsItem::setOpacity() (or other opacity methods), unlike QGraphicsItem::setVisible().

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            dandrader Daniel d'Andrada
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes