Transparent window with frame



  • Hi,

    Every piece of code concerning a transparent window I came across was setting a FramelessWindowHint window flag.

    I would like to have a transparent window WITH a frame. Is it possible ?

    I tried the obvious solution which was to simply set the background-color: transparent style and WA_TranslucentBackground attribute for my main window and its content and I ended up with a black background (if I do set the FramelessWindowHint window flag however, it works).

    Hence my question : should I spend a few hours trying to find a way to have both a transparent window and a frame or is it simply unachievable ?

    I should add that I am only interested in Windows portability.

    Thank you for your help !


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should also add which version of Qt you are using, on which version of Windows.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.