A
A
Alexander2021-01-24 22:22:17
Qt
Alexander, 2021-01-24 22:22:17

How can I make it so that when a button is clicked, an image appears on the button itself?

There is a button. It is necessary that when you click on it, a certain picture appears on it.
I can't find any method. Only change window icons.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2021-01-24
@Shemapp

The answer is easily found by a search engine: https://stackoverflow.com/questions/3137805/how-to...

A
Alexander Ananiev, 2021-01-24
@SaNNy32

On pressing the button, set the desired qss style with the picture for it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question