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

QGraphicsItem::hasFocus() performance regression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.2
    • 4.6.0
    • Widgets: GraphicsView
    • None
    • e7b0998325a66ecb9f979f253d732db85e1f43d1

    Description

      QGraphicsItem::hasFocus() is called from initStyleOption() which is called on every single paint. The best solution is perhaps not to use hasFocus() at all, but on the other hand, the function itself should be cheap in general.

      Attachments

        Issue Links

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

          Activity

            People

              bjnilsen Bjørn Erik Nilsen
              bjnilsen Bjørn Erik Nilsen
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes