PyQt5 Fenêtre avec fond transparent
📁 Sujets avancés sur Python, exemple, travail
Je souhaite créer une fenêtre qui a un fond transparent à l'intérieur.
J'ai cherché toutes les options. J'obtiens invariablement un fond noir. L'option de transparence de toute la fenêtre fonctionne, mais ne me convient pas, car j'ai besoin de bordures de fenêtre bien visibles et d'un vide à l'intérieur.
Exemple de code :
from PyQt5.QtWidgets import QApplication, QWidgetfrom PyQt5 import QtCoreclass Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setGeometry(300, 300, 300, 220) self.setWindowTitle('Example') No answers yet.
Connectez-vous pour laisser une réponse