Hi,
Kann man mit PyQt den fensterrahmen unsichtbar machen?
So wie bei ICQ unter windows ?
Fensterrahmen unsichtbar?
Cool, danke!
Kann man auch bei diesem script: Das irgentwie machen, dass der graue hintergrund transparent ist. Ich habe nämlich vor ein transparentes bild darauf zu platzieren, dass man dann dadurch gucken kann?
Kann man auch bei diesem script:
Code: Alles auswählen
import sys
from PyQt4 import Qt, QtCore, QtGui
class widget(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(self)
self.layout = QtGui.QGridLayout()
self.button = QtGui.QPushButton("button")
self.layout.addWidget(self.button)
self.setLayout(self.layout)
self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
self.connect(self.button, QtCore.SIGNAL("clicked()"),
sys.exit)
app = QtGui.QApplication(sys.argv)
w = widget()
w.show()
app.exec_()
[b][i]ein kleines game für die die lust haben http://konaminut.mybrute.com[/i][/b]
;-)
;-)
Unter X11 tut
QWidget.setWindowOpacity()
ganz doll.
1.0 == Full Opaque (0 Translucent)
0.0 == Full Translucent (0 Inhalt )
Die Doku sagt:
QWidget.setWindowOpacity()
ganz doll.
1.0 == Full Opaque (0 Translucent)
0.0 == Full Translucent (0 Inhalt )
Die Doku sagt:
This feature is available on Embedded Linux, Mac OS X, Windows, and X11 platforms that support the Composite extension.
This feature is not available on Windows CE.
Note that under X11 you need to have a composite manager running, and the X11 specific _NET_WM_WINDOW_OPACITY atom needs to be supported by the window manager you are using.
Code: Alles auswählen
self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
[b][i]ein kleines game für die die lust haben http://konaminut.mybrute.com[/i][/b]
;-)
;-)