[Qt 5 / Qt Quick 2.0] Nice way for a Transparent Window



  • The nice old way to get a transparent window in qt 4.8 was simply:
    @viewer.setAttribute(Qt::WA_OpaquePaintEvent);
    viewer.setAttribute(Qt::WA_NoSystemBackground);
    viewer.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
    viewer.viewport()->setAttribute(Qt::WA_NoSystemBackground);
    @
    But since Qt 5 this wont work any more (has no member named ...).
    A workaround made billouparis in this post: http://qt-project.org/forums/viewthread/18984

    But is there a better way to achieve this?

    greez
    Eli


Log in to reply
 

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