zgulser
11th June 2012, 08:14
Hi,
I have a QTabWidget which has 4 tabs in it. I wanted to assign a unique icon for each tab and to do so, I opened my designer and played with currentTabIcon parameter for each of the tab.
Moreover, I give an icon as a parameter when I;
QIcon icon(":/images/tab_phone_icon.png");
_ui.tabWidgetCalls->addTab(tab, icon,"");
I also use qss to give some style to my tabwidget.
The problem here is icon doesn't seem at all. Instead "0" is being written on my tab.
I have a QTabWidget which has 4 tabs in it. I wanted to assign a unique icon for each tab and to do so, I opened my designer and played with currentTabIcon parameter for each of the tab.
Moreover, I give an icon as a parameter when I;
QIcon icon(":/images/tab_phone_icon.png");
_ui.tabWidgetCalls->addTab(tab, icon,"");
I also use qss to give some style to my tabwidget.
The problem here is icon doesn't seem at all. Instead "0" is being written on my tab.