nkint
8th September 2010, 11:08
hi
this is my first forum i hope is right section
i'm with python 2.6 and pyqt 4.7
qanto to make a window with transparent bacground: inside i want do see buttons and see the desktop over it
i've searched in forum but given solutions don't works.
i've tried those methods, in contructor and in paintEvent() override:
self.setStyleSheet("background-color: rgba(255, 255, 255, 0%);")
and
self.setWindowOpacity(0.3)
,
self.setBackgroundRole(QtGui.QPalette.Base)
self.setAttribute(Qt.Qt.WA_NoSystemBackground, True)
with also
self.setAttribute(Qt.Qt.WA_TranslucentBackground)
the only result i've got is a window with noise inside. if window is small i get noise with color similar to background, if i enlarge it, only black
thanks for your attention
this is my first forum i hope is right section
i'm with python 2.6 and pyqt 4.7
qanto to make a window with transparent bacground: inside i want do see buttons and see the desktop over it
i've searched in forum but given solutions don't works.
i've tried those methods, in contructor and in paintEvent() override:
self.setStyleSheet("background-color: rgba(255, 255, 255, 0%);")
and
self.setWindowOpacity(0.3)
,
self.setBackgroundRole(QtGui.QPalette.Base)
self.setAttribute(Qt.Qt.WA_NoSystemBackground, True)
with also
self.setAttribute(Qt.Qt.WA_TranslucentBackground)
the only result i've got is a window with noise inside. if window is small i get noise with color similar to background, if i enlarge it, only black
thanks for your attention