Hi,
I have a push button and i want to set its style for normal, hover and pressed state. The style sheet code i used is-
QPushButton#myButton {
background-image: url(:/image/normal.bmp);
border: none;
}
QPushButton#myButtonressed {
background-image: url(:/image/pressed.bmp);
border: none;
}
QPushButton#myButton:hover{
background-image: url(:/image/hover.bmp);
border: none;
}
with this style sheet, normal and hover images are displayed but when i pressed button then button is not showing image for pressed state. Image for hover state is not changed in the pressed state image.
Any suggestion what i am doing wrong?
Bookmarks