10. Other Advanced Controls
Image rollovers using QImageRollover
<< Introduction to QImageLabel
|
Back to Main
|
Introduction to QTreeNav >>
View Source
will open in a new window
Rollover Images using QImageRollover
A frequent component of a web application is an image control that changes as the user hovers over it with their mouse. You can find examples of this pattern in navigational menus that highlight when you hover over the menu items: each item is implemented as an image that has a mouse hover behavior implemented that swaps this image out for another one. That other image is basically identical, except that it has a "highlight" effect imlemented.
It's really easy to implement functionality described above with a
QImageRollover
control. Simply provide the URL's to the two images (standard and "on hover"), and QCubed will do the rest.
To see it in action, just mouse over the image below.