(I used Qt::FramelessWindowHint to disable standard border
Qt::FramelessWindowHint
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!