Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.14.2, 5.15.2
-
None
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
- duplicates
-
QTBUG-85993 gcc 10.1 will cast to QCursor if you try to call operator== on two QPixmap
- Closed