Answer the question
In order to leave comments, you need to log in
How to display background image PyQt5?
There is a section of code that is responsible for the background image:
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setGeometry(QtCore.QRect(-1, -1, 973, 773))
self.frame.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.frame.setStyleSheet("background-image: url(bg-01.jpg);")
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question