Results 1 to 1 of 1

Thread: Transparency in Icons

  1. #1
    Join Date
    Aug 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Transparency in Icons

    I've got a set of icons (*.xpm) and they have a specific color that shows what is transparant. ie all areas that are colored an awfull green should be transparent. Is there any way to assign a specific color as transparent ?


    EDIT

    Got it to work with the following:
    QPixmap icon("icons/out_mesh.xpm");
    icon.setMask(icon.createMaskFromColor(QColor(0,255 ,0)));
    Last edited by mullwaden; 15th August 2008 at 10:56.

Similar Threads

  1. no icons on the another machine (after installation)
    By roxton in forum Installation and Deployment
    Replies: 2
    Last Post: 4th July 2008, 17:24
  2. Speed, transparency, and drop issues with QGraphicsView
    By jefferai in forum Qt Programming
    Replies: 16
    Last Post: 30th June 2007, 16:14
  3. QIcon Icons are not visible
    By harakiri in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2007, 19:11
  4. Suppressing menu icons on the Mac
    By Brandybuck in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2006, 19:00
  5. Facing problem with tool bar icons
    By jnana in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 08:37

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.