Results 1 to 2 of 2

Thread: Custom whatsthis action

  1. #1
    Join Date
    Nov 2010
    Posts
    22
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Custom whatsthis action

    The current qwhatsthis class only displays a text balloon. However what I would really like is to launch my help system indexed according the clicked widget.

    So far I can imagine that this could be done making custom widgets that re-define the click() events. Once the item is clicked it will check for the Qt::EnterWhatsThisMode event. If it is on whatsthismode I will look within the user help using an index key extracted from a custom widget property. If not, it will just do a normal click.

    Also I could customize a QAction class which just checks for the whatsthismode when triggered or clicked. This would be easy but will only work for actions. I have many types of widgets for which I would like an in-depth help

    I wonder if I am missing something about the whasthismode. My solution seems too complicated for something so common. Is there a better way to do this?
    Last edited by frank100; 2nd February 2011 at 22:54.

  2. #2
    Join Date
    Nov 2010
    Posts
    122
    Thanks
    62
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Custom whatsthis action

    You ever get anywhere with this, I am attempting to do similar things. I will keep you posted on my progress.

Similar Threads

  1. WhatsThis button in QMainWindow
    By _Jack_ in forum Newbie
    Replies: 8
    Last Post: 23rd October 2010, 09:58
  2. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  3. whatsThis hotkeys for a Mac?
    By wconstan in forum Newbie
    Replies: 1
    Last Post: 28th November 2009, 13:12
  4. Custom action added to make by qmake
    By NTwoO in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2007, 10:17
  5. No action checked in an exclusive action group
    By SkripT in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 06:19

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.