Results 1 to 2 of 2

Thread: QTabWidget and setToolTip

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question QTabWidget and setToolTip

    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.
    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.

    Qt Code:
    1. ...
    2. if(tabdialog->indexOf(chat)!=-1){
    3. tabdialog->setTabToolTip(chat, chat->title());
    4. if(tabdialog->currentPage()==chat){
    5. tabdialog->setCaption(chat->title());
    6. tabdialog->setIcon(ule.status(protocolName).pixmap());
    7. }
    8. tabdialog->changeTab(chat, ule.status(protocolName).pixmap(), ule.altNick());
    9. }
    10. ...
    To copy to clipboard, switch view to plain text mode 
    Last edited by cactusic; 23rd December 2006 at 16:13. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTabWidget and setToolTip

    My guess is you have to reenter the tab for the tip to be updated.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.