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

QGraphicsTextItem::setDefaultTextColor doesn't check whether input is the same as the current value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.1
    • 4.6.1
    • Widgets: GraphicsView
    • None
    • c8494e085cd5abc3b30229409c7dacac676c81b9

    Description

      QGraphicsTextItem::setDefaultTextColor does not check whether the given color is already the defaultTextColor. On some systems, this results in infinite loops if the paintEvent calls setDefaultTextColor. This is for example necessary when the QGraphicsTextItem is colored with a KStatefulBrush. See http://websvn.kde.org/?view=rev&revision=1054334 for an example of where this issue occurs, and how a workaround solved the problem.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            majewsky Stefan Majewsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes