Results 1 to 3 of 3

Thread: F1 and WinHelp working with Qt

  1. #1
    Join Date
    Mar 2008
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Question F1 and WinHelp working with Qt

    How you get F1 to call the WinHelp API within Qt

    Thanks

  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: F1 and WinHelp working with Qt

    Create an QAction with the shortcut "F1" .
    Create a slot to catch the F1 triggered like -
    Qt Code:
    1. QAction helpAction;
    2. helpAction.setShortCut("F1");
    3. connect(helpAction,triggered(),this,OnHelp());
    4.  
    5. OnHelp()
    6. {
    7. // call the WinHelp API u want
    8. }
    To copy to clipboard, switch view to plain text mode 

    Hope this was what u were looking for ?

  3. #3
    Join Date
    Mar 2008
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: F1 and WinHelp working with Qt

    Yes that it thanks so much

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.