Results 1 to 2 of 2

Thread: Customizing a Widget's Tool Tip.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Customizing a Widget's Tool Tip.

    Hi Folks,


    Is it possible to customize TOOL TIP for a WIDGET(like CheckBox, Spin Box, etc.,)??? I have tried the following way but I got an error saying that 'UI_AnimateTooltip' : is not a member of 'Qt::UIEffect'.

    Please any one help me to find out the solution...

    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include "dlg.h"
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication::setDesktopSettingsAware(false);
    7. QApplication::setEffectEnabled(Qt::UIEffect::UI_AnimateTooltip);
    8. QApplication a(argc, argv);
    9. dlg w;
    10. w.show();
    11. a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
    12. return a.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 

    If I succeed in the above code it will affect whole the application but I need to customize a few TOOL TIP informations..!!!!! Please give me any clue..!!!!!!!!

    Thanks a lot in advance.........
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Customizing a Widget's Tool Tip.

    Line 7 should be -
    QApplication::setEffectEnabled(Qt::UI_AnimateToolt ip);



    By the way what customizations are u looking for in the tooltip ? I was also facing similar problem ....

Similar Threads

  1. Qt3 - Multiple transparent widgets
    By bythesea in forum Qt Programming
    Replies: 4
    Last Post: 11th September 2009, 11:24
  2. Replies: 2
    Last Post: 16th May 2008, 14:39
  3. widgets behind hidden widgets not working
    By bpetty in forum Newbie
    Replies: 13
    Last Post: 7th September 2007, 20:23
  4. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57
  5. Replies: 11
    Last Post: 7th July 2006, 13:09

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.