QLabel has no attribute "setPixmap"
Solved
Qt for Python
-
hello all!
I have 2 labels on my GUI, and want to display an image... follwoing code:
if inspection == False: self.originalPic.setPixmap(pixmap) else: self.originalPicInspection.setPixMap(pixmap)
the first one works, the second one (else condition) throws error
'QLabel' object has no attribute 'setPixMap'
I am not able to figure out what the problem is. It is a label like the other, the name is correct (sinche also the error message says that it is a QLabel,) what could cause this error?
-
@JonB said in QLabel has no attribute "setPixmap":
look at the spelling.
(including uppercase vs. lowercase)