I have an image and I need it to occupy 100%, it will be the bottom of my program, how to proceed?
from PyQt5 import QtWidgets, QtGui
import sys
class Hello_World(QtWidgets.QWidget):
def __init__(self):
super(Hello_World, self).__init__()
self.setWindowTitle("Olá mundo!")
self.setGeometry(200,200,700,500)
self.setStyleSheet("Background-Color: #d9b3ff;")
self.texto = QtWidgets.QLabel(self)
self.texto.setPixmap(QtGui.QPixmap("Imagens/fundo.jpg"))
if __name__=="__main__":
app = QtWidgets.QApplication(sys.argv)
janela = Hello_World()
janela.show()
sys.exit(app.exec_())