In Qt 4.8, QWidget with QDeclarativeView can make a shaped window, with the QWidget settings:
setWindowFlags(Qt::FramelessWindowHint);
setStyleSheet("background :transparent;");
setAttribute(Qt::WA_TranslucentBackground, true);
In Qt 5.2, QQuickView seems different from QDeclarativeView. I tried the same way as in Qt 4.8 but failed.
I found Shaped Clock Example. Is it the only way for Qt 5.2 to make a shaped window?
Thanks in advance.
Cid
↧