[PyKDE] Borderless Dialog?
Kenneth Godee
Ken at perfect-image.com
Fri Jan 3 23:41:00 GMT 2003
I'm trying to create a borderless dialog.....
class addcopy(QDialog):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
QDialog.__init__(self,parent,name,modal,fl)
When I try to set WidgetFlags with...
w = addcopy(fl = Qt.WStyle_NoBorder)
I get no changes in the Window(widget) and no errors, nothing.
When I try......
w = addcopy(fl = Qt.MotifStyle)
I get a borderless dialog Window(widget)!
Maybe QWidget won't let me do NoBorder, because it's a dialog?
I get a borderless dialog window with the above Qt.MotifStyle,
is this because maybe it's just blowing away all the style flags, I
really don't end up with Motif Style, just a borderless dialog window?
Doesn't seem correct to use the Qt.MotifStyle to get to borderless?
Any suggestions on how to create a borderless dialog?
More information about the PyQt
mailing list