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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-129973
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes