Qt::WA_TranslucentBackground and raster graphic system on Mac OS X
-
Raster graphic engine doesn't works correctly on Mac OS when Qt::WA_TranslucentBackground = true.
I have problem with rendering my GUI on Mac OS(on Windows everything works good) and I decide to use raster graphic engine.
When Qt::WA_TranslucentBackground=false raster graphic engine works correctly. When Qt::WA_TranslucentBackground=true occur renedering problemsI have created simple example which renders different on raster and native mode.
@
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QApplication::setGraphicsSystem("raster");
QScopedPointer<QApplication> app(createApplication(argc, argv));
QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
viewer->setAttribute(Qt::WA_TranslucentBackground,true);
viewer->setMainQmlFile(QLatin1String("qml/untitled/main.qml"));
viewer->showExpanded();
return app->exec();
}
@@
import QtQuick 1.0Item {
width: 1024
height: 500
Rectangle
{
color:"green"
anchors.fill:parent
ListView
{
model:5
delegate:
Image {
id: testText
source: "http://www.google.com.ua/images/srpr/logo1w.png"
}width:200 height:500 }
}
@I use Qt 4.8 RC.