PDA

View Full Version : How to set different images on QTabbar's tab



meraj ansari
13th May 2010, 16:17
Hi,

I am customizing tab widget by using style sheet. i am able to represent selected and non selected tab. For doing this i am setting one image for selected tab and second image for non selected tab. For doing this i am referring following code-

http://doc.trolltech.com/main-snapshot/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

My problem is - Suppose their are 2 tabs and i want to show each tab's 3 state- selected,non selected and mouse hover. So for each tab i have 3 unique images. But i don't know how to set these images on tab by using style sheet.

Any suggestion will be good for me.

high_flyer
14th May 2010, 10:03
Try using: QTabBar::tab:hover