Results 1 to 1 of 1

Thread: Help on QtHelp [Solved]

  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Help on QtHelp [Solved]

    I got the bright idea that I should include some embedded help in my app, rather than force users to look it up in the PDF document.

    I am trying to develop the UI for embedding QtHelp (using QHelpEngine and QTextBrowser). To do this I would like to simply use an existing help file (like assistant.qch or qmake.qch) to get the UI working before I start writing my own help.

    Just can't get it to work. When I try to load the qch file (using QHelpEngineCore::registerDocumentation()) this fails because apparently the database is not open (QtHelp uses sqlite). So I am not sure if this is a deployment issue or a coding problem.

    Can anyone point me to an app that uses the QtHelp module in this way? The Qt documentation says that this how it should be done, but I can't find an example. Google has not been my friend in this instance.

    Note: I don't want an example that uses QtAssistant.

    Thanks for any pointers.

    **Edit: Never mind; after more Googling, I did find this discussion. My problem was apparently the missing qhc (help collection) file. The documentation for QHelpEngine::QHelpEngine() incorrectly states:

    Constructs a new help engine with the given parent. The help engine uses the information stored in the collectionFile for providing help. If the collection file does not already exist, it will be created.
    This is not true. The collection file *must* exist, it *is not* created if it does not.
    Last edited by d_stranz; 31st May 2013 at 21:27.

Similar Threads

  1. Qt 5: handling of CSS imports in QtHelp
    By agarny in forum Qt Programming
    Replies: 4
    Last Post: 21st January 2013, 16:49
  2. Qt 5: handling of CSS imports in QtHelp
    By agarny in forum Qt Webkit
    Replies: 3
    Last Post: 21st January 2013, 16:48
  3. Problem with SDK 1.2 (Qt 4.8) and QtHelp
    By agarny in forum Qt Programming
    Replies: 3
    Last Post: 3rd February 2012, 15:24
  4. qtHelp namespaces
    By winkle99 in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2010, 00:32
  5. QtHelp
    By WinchellChung in forum General Discussion
    Replies: 5
    Last Post: 14th May 2008, 22:46

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.