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

QPixmap comparison

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.14.2, 5.15.2
    • GUI: Painting
    • None
    • Windows

    Description

      An attempt to compare for equality of two QPixmap instances results in creating QCursor instances based on each of the QPixmaps, and then comparing the created QCursors. This is because the QCursor constructor that takes the QPixmap is implicit.
      I think this implicit QCursor creation is both incorrect and redundant.
      I think it is necessary to either explicitly disallow comparison for equality of QPixmap instances, or (preferably) extract the code related to the comparison of QPixmaps from the QCursor comparison function into a separate QPixmap comparison function, if possible.

      Attachments

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              azrielfuzz Павел Золотов
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes