I created an app related opacity on qt widget app.It is succesfully working on ubuntu.But it s not working on imx6 board.Everything is same(only debugger is diffirent).
QT version : 5.3.2
Yocto : Poky Distro
Kernel : 3.14.28
{
QGraphicsOpacityEffect * effect = new QGraphicsOpacityEffect(this);
effect->setOpacity(0.565601);
ui->label->setGraphicsEffect(effect);
}
or with qpainter tried
{
QPixmap result(pixmap.size());
result.fill(Qt::transparent);
QPainter painter;
painter.begin(&result);
painter.setOpacity(pi);
painter.drawPixmap(0,0,pixmap);
painter.end();
label->setPixmap(result);
printf("opacity:%f",pi);
}