[PyQt] rounded corners on a qlabel used as a top level window

Victor Noagbodji noagbodjivictor at gmail.com
Thu Feb 11 21:42:10 GMT 2010


hello all,

if you visit http://jsgrowl.com/, you will see nice modal and
semi-modal windows. the idea is to reproduce them using pyqt. i
started with a qlabel. used html for the content. set the window flag
to Qt.SplashScreen. and applied my stylesheet.

but the squared corner is not going way.

the session looks like this:

>>> l = QLabel("<h1>Missing Fluffy Cat</h1><p>Last time seen: 2/10/2010 12:00.</p>")
>>> l.setStyleSheet('border: 2px solid black; border-radius: 10px;')
>>> l.setWindowFlags(Qt.SplashScreen)
>>> l.show()

anyone has an idea or has done it before?

thanks

-- 
paul victor noagbodji


More information about the PyQt mailing list