I am making a podcast application where I want to display channel icons. That's where I asked myself : How do I properly display a picture in PyQt5 ? I read about this:
label = QLabel()
pixmap = QPixmap('image.png')
label.setPixmap(pixmap)
It's often done that way, but I feel a bit, well, uneasy, about it. It feels hackish to me even though there is an extra method to do it like this. Is there any docs passage where the above way is defined as the official standard one ? If not, is there a better way ? Something like
lay = QVBoxLayout()
image = SomeWidget("image.png")
lay.addWidget(image)