I would like to achieve the picture as button, when the mouse moves to the location of the picture, the picture switches into another picture. Please help me, is there any example lend me refer to the following? Thanks
I would like to achieve the picture as button, when the mouse moves to the location of the picture, the picture switches into another picture. Please help me, is there any example lend me refer to the following? Thanks
Set a image to QPushButton and use css :hover to change the image by qproperty-icon. Or subclass QLabel/QWidget/QPushButton, and reimp QWidget::enterEvent() and QWidget::leaveEvent() to change the image.
Raymond (22nd February 2010)
Bookmarks