I want to display a standard warning icon along with some description text in QLabel
in pyqt. Qlabel
doesn't have setIcon
function. So how could I do that?
Any help would be appreciated.
QLabel
doesn't have a setIcon
method, but it has setPixmap
. But if you use that to set a QPixmap
it overrides your text. but there are a few possibilities to achieve what you want:
QLabel
to display text+image