Hi,
I am drawing transparent image in the page but for some reason it is not visible as transparent, can any body point me the reason?
Please see the + - back and reset button. See the image
http://www.freeimagehosting.net/6qblq
Thanks
Akatar
Hi,
I am drawing transparent image in the page but for some reason it is not visible as transparent, can any body point me the reason?
Please see the + - back and reset button. See the image
http://www.freeimagehosting.net/6qblq
Thanks
Akatar
Are you sure about the fact that the image itself is transparent.Try opening the image in paint etc with a black background & see if white background of image is still visible.
I am not 100% sure about the image. But with gimp 2.6 it looks the image is transparent.
RHS is taken from gimp editor and LHS is windows paint. Is it not transparent? See the image from here http://hemelix.com/imagecompare.png or![]()
I think same issue is discussed here with a solution as well : http://comments.gmane.org/gmane.comp....general/43188
Thanks but it did not help me. It is qml app that load qml file and I use the png file
I have a code like this
QScopedPointer<QApplication> app(createApplication(argc, argv));
//QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
QmlApplicationViewer viewer;
viewer.setAttribute(Qt::WA_OpaquePaintEvent);
viewer.setAttribute(Qt::WA_NoSystemBackground);
viewer.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
viewer.viewport()->setAttribute(Qt::WA_NoSystemBackground);
//viewer.setStyleSheet("background:transparent;");
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
Make sure that the rectangle behind your image is transparent, by default it is white
br
Mahbub