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

QPainter::boundingRect functions should be declared as const

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes