Transparency of mainwindow using EGLFS



  • Hi,

    I'm currentlty trying to developp an application that uses two framebuffer of my imx6 based board. The first one is used to display a gstreamer video while the second will be use to add some action buttons (stop, play for example).

    I'm facing a problem that is :
    When I launch the gstreamer on /dev/fb0 (background) and then launch the qt application on /dev/fb1 (foreground) I would like to set a region of the Qt application (bases on a MainWindow designed with QtDesigner) transparency. But I'm not able to set it work. I try with :

    w.setAttribute(Qt::WA_TranslucentBackground);
    w.setStyleSheet("background:transparent;");
    QRegion maskedRegion(0, 0, 1280, 800);
    w.setMask(maskedRegion);
    

    But still not work, there is always a default transparency ...
    I suspect that the framebuffers have already their own alpha layer but I don't know how to progress...


Log in to reply
 

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