PDA

View Full Version : QTabWidget and setToolTip


cactusic
23rd December 2006, 17:07
Hi All!

I'm writing plugin for docking chats (for IM) in one window with tabs.
When I call setToolTip,setTabIcon for tab (active or inactive). The tooltip in this tab will not update, but TabIcon Does. :confused:
But when i click to change tab for different tab, everything update to this what I set before.

I was traying for repaint(), removeToolTip and set after but nothing works for me.

Don't know what to do, anyone know? It could be Qt problem?

Qt 3.3.7

Thank You
Bart.

...
if(tabdialog->indexOf(chat)!=-1){
tabdialog->setTabToolTip(chat, chat->title());
if(tabdialog->currentPage()==chat){
tabdialog->setCaption(chat->title());
tabdialog->setIcon(ule.status(protocolName).pixmap());
}
tabdialog->changeTab(chat, ule.status(protocolName).pixmap(), ule.altNick());
}
...

wysota
19th January 2007, 11:25
My guess is you have to reenter the tab for the tip to be updated.