Results 1 to 5 of 5

Thread: how to implement QWhatsThis class

  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default how to implement QWhatsThis class

    I want to creat an application ,in whose menu Whatsthis is created and as soon as clicking on it it should display the content what i've written for it like help system.can anybody let me know the related kind of example......this should be implemented using Widgets

  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: how to implement QWhatsThis class

    I want to creat an application ,in whose menu Whatsthis is created and as soon as clicking on it it should display the content what i've written for it like help system.
    You want a WhatsThis action in menu , and show help when it is clicked ?
    Dont you think Help could be a better name ?

    or may be I am not able to grasp your requirement properly.

  3. #3
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to implement QWhatsThis class

    I think wip123 is talking about a feature found in some MS software whereby you click an icon - typically a '?' on a toolbar and then click a widget. A dialog then appears with some information about the widget.

    An easy way to implement this would be to have the icon set a flag when clicked.

    The widget_clicked event could then test this flag and pop up a dialog box accordingly.
    Got to keep the loonies on the path ...

  4. #4
    Join Date
    Jul 2008
    Location
    Norway
    Posts
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Lightbulb Re: how to implement QWhatsThis class

    A simple search in the documentation gave this result: http://doc.trolltech.com/4.6/qwhatsthis.html. Happy coding and doc reading
    !sirius

  5. #5
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: how to implement QWhatsThis class

    Ya we can use the help but iit goes away as soon as the user does something else.So I want to set it to the QWhatsThis mode.I'm able to create the action to enter into Qwhatsthis mode but not able to give the help text to get displayed when we click on the menu or tool bar....

    I've used setWhatsThis() to give the help text but it's not working?

    In the description of class i've seen info about adding text ,it's like -To add "What's This?" text to a widget or an action, you simply call QWidget::setWhatsThis() or QAction::setWhatsThis().

    but not getting how to use QAction::setWhatsThis().

    can anybody help?

Similar Threads

  1. QWhatsThis text in QDockWidget
    By ike in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2010, 14:58
  2. Replies: 2
    Last Post: 20th November 2009, 05:37
  3. QWhatsThis appear when hovering over QPushButton?
    By seanmu13 in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2007, 21:06
  4. How To Change Width of QWhatsThis
    By seanmu13 in forum Qt Programming
    Replies: 2
    Last Post: 7th June 2007, 14:34
  5. linking in QWhatsThis
    By Greenmanspirit in forum Qt Programming
    Replies: 4
    Last Post: 4th June 2007, 21:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.