Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor aktarjahan2003's Avatar
    Join Date
    Oct 2008
    Posts
    65
    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

  2. #2
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,840
    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.

  3. #3
    Regular Contributor aktarjahan2003's Avatar
    Join Date
    Oct 2008
    Posts
    65
    Quote Originally Posted by vineet.jain View Post
    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

  4. #4
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,840
    I think same issue is discussed here with a solution as well : http://comments.gmane.org/gmane.comp....general/43188

  5. #5
    Regular Contributor aktarjahan2003's Avatar
    Join Date
    Oct 2008
    Posts
    65
    Quote Originally Posted by vineet.jain View Post
    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.
    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);

  6. #6
    Registered User mahbub_rahman's Avatar
    Join Date
    Jan 2013
    Posts
    2
    Make sure that the rectangle behind your image is transparent, by default it is white

    br
    Mahbub

Similar Threads

  1. Drawing SVG image on a transparent mutable Image
    By mkonji in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2010-09-29, 07:14
  2. How to make transparent image
    By somnathbanik in forum Symbian C++
    Replies: 21
    Last Post: 2010-08-07, 11:32
  3. How to get transparent image on screen
    By sid_diu in forum Symbian C++
    Replies: 14
    Last Post: 2009-07-23, 07:28
  4. Transparent image
    By Nemat in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-05-25, 23:11
  5. transparent image
    By asif79 in forum Mobile Java General
    Replies: 5
    Last Post: 2003-11-12, 12:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved