AnsweredAssumed Answered

a problem about the opactiy effect in qt5+x11 (imx6q)

Question asked by wang zhigang on Oct 14, 2015
Latest reply on Nov 2, 2015 by wang zhigang
Branched to a new discussion

hi,everyone

recently,we have a problem about qt5 + x11  in imx6q.

our env :

yocto imx-3.10.53-1.1.2_patch

MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11

bitbake fsl-image-qt5

 

we compile the yocto,and get the x11 file system.

our demo for test the opactiy effect is as follow:

// -----------------------------------------

#include <QApplication>

#include <QScreen>

#include <QPushButton>

#include <QWidget>

#include <QSurfaceFormat>

 

 

int main(int argc, char **argv)

{

    QApplication app(argc, argv);

    QSurfaceFormat format;

    format.setSamples(4);

 

 

    QWidget w;

    w.setGeometry(200,200,500,400);

    w.setWindowOpacity(0.35);

    QPushButton bt("PushButton1", &w);

    bt.setGeometry(0,0,100,50);

    bt.show();

    QPushButton bt2("PushButton2", &w);

    bt2.setGeometry(400,350,100,50);

    bt2.show();

    w.show();

 

 

    return app.exec();

}

// -----------------------------------------

 

 

after we execute the demo,we get the warning as follow:

 

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Warning: EGL suggested using X Visual ID 33 (RGB888) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

 

 

and our demo is run without the opactiy effect.we have no idea about the problem,is everyone can help me ?

and how can I get the opactiy effect in qt5+x11?

Best Wishes!

Outcomes