Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Pixmap to be added to icon
Forum Updated to NodeBB v4.3 + New Features

Pixmap to be added to icon

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kewal
    wrote on last edited by
    #1

    Hi all,

    I am trying to add a transparent pixmap layer to the icon on my tool button, is there any easiest way of doing this,. for example, when the button is disabled it gets greyed out,. so similarly when the button is active I need to add a yellowish layer on the button to highlight it,. ... since I have too many buttons i am reluctant to have another set of icons,. is it possible to do with the same set of icons and adding a pixmap layer to it,..

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      You can do the composition in code using QPainters composition methods, but you will need to generate the images for each of the modes this way and set them on QIcon manually from code. QIcon itself cannot automatically create composites like this.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved