×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2011
    Location
    Saint Petersburg, Russia
    Posts
    2

    Image transparency

    Hi.
    I have some problems with images. I use ListView, every item has own Image with white background.
    But i don't understand how to make background transparent in QML.
    There is a sample:
    Code:
    import QtQuick 1.0
    
    Rectangle {
        width: 360
        height: 360
        color: "lightblue"
        Image{
            anchors.centerIn: parent
            source: "http://img.livetv.ru/img/icons/no.gif"
        }
    }

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Image transparency

    i think you can set color property to transparent to make the things transparent.

  3. #3
    Registered User
    Join Date
    Aug 2011
    Location
    Saint Petersburg, Russia
    Posts
    2

    Re: Image transparency

    Yes. But background color will be white
    But i want to choose other color.
    Here the sample looks like:

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2007
    Location
    Magnitogorsk, Russia
    Posts
    536

    Re: Image transparency

    Quote Originally Posted by Max.Minchuk View Post
    Yes. But background color will be white
    But i want to choose other color.
    Here the sample looks like:
    Your gif-file (http://img.livetv.ru/img/icons/no.gif) has white background, sample screenshot is ok

  5. #5
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Image transparency

    You can use Gimp, photoshop or MS paint to remove the white background.
    It's not a QML problem.

Similar Threads

  1. Image Transparency!
    By amerzannouneh in forum Symbian User Interface
    Replies: 7
    Last Post: 2008-11-27, 10:47
  2. Image Transparency issue
    By tomcruise in forum Mobile Java General
    Replies: 1
    Last Post: 2008-05-31, 15:47
  3. Image Transparency issue
    By tomcruise in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-05-31, 15:46
  4. Image Clipping and Transparency
    By vikrambk in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-11-05, 10:35
  5. reinit an image with transparency
    By madalin_oprea in forum Mobile Java General
    Replies: 4
    Last Post: 2005-02-01, 15:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •