user896036
user896036

Reputation: 509

How can we change the background image of button by pressing or hovering on the button?

I have made a round button and i have set a background image on it. I want it to display the other background button image while hover over it.

Upvotes: 0

Views: 845

Answers (1)

BЈовић
BЈовић

Reputation: 64253

You can do that using style sheets:

QPushButton:hover { color: white }

See more about pseudo states here.

Upvotes: 1

Related Questions