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

QPixmap comparison

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes