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

QGraphicsItem::hasFocus() performance regression

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes