lixo1
25th January 2009, 14:40
Hi everybody,
I'm absolutely a Qt4 newbie.
I have the following problem: I have a QPushButton, with a icon image (iconSize: 90x90px) I would like to associate another icon image when I pass the mouse over this button, without clicking.
I tried with style sheet but it doesn't works (in the designer it works but the image is not in 90x90px, but in the application it not works). I tried that but nothing:
QPushButton: hover {
background-image: url("mypicturefromresources.png");
background-position: center;
width: 90px;
height: 90px;
}
Is there another suggestion to do it in a easy way?
Thank you very much.
I'm absolutely a Qt4 newbie.
I have the following problem: I have a QPushButton, with a icon image (iconSize: 90x90px) I would like to associate another icon image when I pass the mouse over this button, without clicking.
I tried with style sheet but it doesn't works (in the designer it works but the image is not in 90x90px, but in the application it not works). I tried that but nothing:
QPushButton: hover {
background-image: url("mypicturefromresources.png");
background-position: center;
width: 90px;
height: 90px;
}
Is there another suggestion to do it in a easy way?
Thank you very much.