How to implement border-image effect, in QWidget .
-
wrote on 16 Nov 2010, 04:50 last edited by
@
QPushButton {
border-image: url(:/images/button.png) 16;
border-width: 16px;
padding: -16px 0px;
}
@
When I use the above code to implemented border-image effect, it can work properly in QPushButton. When I want it to work in QWidget,
the failed.
how to implement border-image effect, in QWidget .
Qstyle ?
or other ?
how? -
wrote on 16 Nov 2010, 14:18 last edited by
QWidget does not have border. Try QFrame
-
wrote on 16 Nov 2010, 19:04 last edited by
A custom paint method will of course get you the required effect:-)
I doubt that QFrame is the way to go.
1/3