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

QPainter::boundingRect functions should be declared as const

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.8.0
    • GUI: Painting
    • None
    • Windows 7

      I am currently working on a small plotting library and are making a class hierarchy of plot commands. In my base class I assumed that the boundingRect function was const. When implementing a command for drawing text I naturally wanted to use QPainter::boundingRect, but ran into problems because the QPainter function was not declared as const. Why? In my opinion the operation is logically const.

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

            sletta Gunnar Sletta
            stian Stian Andre Olsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes