QT4: Transparent Window with rounded corners

前端 未结 3 1789
你的背包
你的背包 2020-12-03 01:40

How can I create a partially transparent window with rounded borders (no standard borders)?

(I used Qt::FramelessWindowHint to disable standard border

3条回答
  •  被撕碎了的回忆
    2020-12-03 02:08

    I think you should use a widget masks, as seen in the following example from Qt :

    http://doc.qt.io/qt-5/qtwidgets-widgets-shapedclock-example.html

    I think you'll find what you're looking for in it !

    Hope this helps a bit!

提交回复
热议问题