QT STYLE SHEET Heptagon Button
-
its possible to Make button like CSS button in QT STYLE SHEET as following
i done it in CSSclip-path: polygon(100% 37%, 100% 85%, 85% 100%, 0 100%, 0 36%);
but i cant apply to qt style sheet
-
@Marco-Flad said in QT STYLE SHEET Heptagon Button:
is there any way to make this Button in Qt Widgets ?
Yes, just call
QWidget::setMask
to set the "boundaries" of widgets -
@Marco-Flad
QSS/Qt stylesheet is not CSS, like in HTML. It's just a subset of stuff Qt decided to define/implement. If the docs for example do not mention thatclip-path
is supported, it won't have any effect. And I don't see anyclip
on https://doc.qt.io/qt-5/stylesheet-reference.html.... -
@JonB said in QT STYLE SHEET Heptagon Button:
nd I don'
thank you i got it .
but is there any way to make this Button in Qt Widgets ? -
@Marco-Flad said in QT STYLE SHEET Heptagon Button:
is there any way to make this Button in Qt Widgets ?
Yes, just call
QWidget::setMask
to set the "boundaries" of widgets