Results 1 to 1 of 1

Thread: How to make an xpm or QIcon have the application colors?

  1. #1
    Join Date
    Oct 2009
    Location
    Craiova, Romania
    Posts
    46
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default How to make an xpm or QIcon have the application colors?

    I want to create a QIcon from an xpm, just showing an X like symbol with dimentions 16x16. So this icon contains only 2 colors. I want the X to be shown in a menu, and that the color of X is the menu foreground and the color of background is the menu background. How can I make this in the best way?

    I thought to get menu palette and get the foreground and background colors and add them in the xpm in the #RRGGBB format, but this may not be portable and is certainly not elegant.

    Basically, I need to show an X before a menu item, for some special menu items.
    Last edited by lalesculiviu; 21st October 2009 at 11:17.

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. Make error with Qt Jambi 4.3.2_01
    By pamalite in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd November 2007, 12:05
  3. Window OS make distclean && qmake && make one line
    By patrik08 in forum General Programming
    Replies: 4
    Last Post: 22nd March 2007, 10:43
  4. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.