K
K
konopka2282020-04-08 11:29:12
Python
konopka228, 2020-04-08 11:29:12

Is it possible to return the color of a button that is disabled via setEnabled?

I have this deck of cards. All cards except cards in the last row are disabled with setEnabled(False). The images on the buttons were set using QIcon. Is it possible to return the color of disabled buttons? If yes, please tell me how?
5e8d8a336610c059027601.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory, 2020-04-08
@Griglapidus

QIcon icon2;
    icon2.addPixmap(pixmap,QIcon::Active);
    icon2.addPixmap(pixmap,QIcon::Disabled);

Qicon disabled full color

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question