[Qt-interest] widget with round corners
Markus Franke
markus.franke at informatik.tu-chemnitz.de
Tue Feb 17 07:16:18 CET 2009
Zitat von Puneet Bisht <pbisht at nivio.com>:
> i want to cut the extra region on the corners.
> can someone help me on this.
Well, Qt4 provides style-sheets to achieve this. If it's a QLabel you
can simply set "border-radius" to some value. Don't know if this is
also possible with Qt3 but I am afraid it isn't. You can also paint
the widget by yourself in the widget's paintEvent() handler using
primives like drawRoundRect().
So long,
Markus
More information about the Qt-interest-old
mailing list