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

Simplify usage of QPainter::save/restore() for styles

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • GUI: Painting
    • None
    • All

      It would be nice to have a small RAII helper class which makes sure that QPainter::restore() is called for every QPainter::save(). Or since QPainter::save()/restore() is a heavy operation, a helper class which only saves the states which are getting modified.

      The first user should be the internal Qt styles. When it becomes mature, it can become a public class for wider usage.

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

            chehrlic Christian Ehrlicher
            chehrlic Christian Ehrlicher
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes