Drawing my custom icon in a standard situation? Do you mean:
Qt Code:
  1. for (int i = 0; i < NumModes; ++i){
  2. QIcon::Mode mode;
  3. if (i == 0) {
  4. mode = QIcon::Active;
  5. } else if (i == 1) {
  6. mode = QIcon::Selected;
  7. } else if (i == 2) {
  8. mode = QIcon::Disabled;
  9. }
  10. else if(i == 3){
  11. mode = QIcon::Active;
  12. }
  13. pixmap = icon.pixmap(size, mode, QIcon::Off);
  14. QPixmap onIcon("on.png");
  15. QPixmap offIcon("off.png");
  16. icon.addPixmap(onIcon, QIcon::Active);
  17. icon.addPixmap(offIcon, QIcon::Disabled);
  18.  
  19. pixmapLabels[i]->setPixmap(pixmap);
  20. pixmapLabels[i]->setEnabled(true);
  21. }
To copy to clipboard, switch view to plain text mode 
For example, i have 30 differents "ON" icons which looks like MaximumActive.png
In this way i must create 30 differents "OFF" icons which looks like MaximumAverage.jpg? It's not good.

I intend to increase saturation of current icon (Active mode) and other icons (in MyDisable mode) must be with low saturation like MaximumAverage.jpg but not gray like this:
screen.jpg

Thank you.