B
B
Bogdan Karpov2018-10-07 10:35:20
Python
Bogdan Karpov, 2018-10-07 10:35:20

How to show picture in PyQt form?

I am writing a program that generates a .png picture, how to show it in a Qt form, use graphicsView, but how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bogdan Karpov, 2018-10-07
@phpkoder

Found a way, use label ,
example:

pix = PyQt5.QtGui.QPixmap("file.png")
self.ui.label.setPixmap(pix)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question