Border-radius won't apply to the current widget
-
-
Hi,
AFAIK this wont work for a top level window.
As an alternative you can add a QWidget to the Window and set radius from the stylesheet to this QWidget and also need
@
setAttribute(Qt::WA_TranslucentBackground);
setWindowFlags(Qt::FramelessWindowHint);
@Tested above with a QDialog.
-
Styelsheets wont work here. Other than that you reimplement paintEvent and draw it all yourself. Have a look at "shapedclock":http://qt-project.org/doc/qt-5/qtwidgets-widgets-shapedclock-example.html