May 18, 2011

maciek maciek
Lab Rat
67 posts

[solved] Assistant can’t find files from custom documentation

 

Hi all,

I’d like to create Help system in my application with use of QtAssistant. I’ve created .qhp and .qhcp files, then generated collection file with:

  1. qcollectiongenerator help.qhcp -o help.qhc

and started assistant with:
  1. assistant -collectionFile help.qhc

Unfortunately I’m getting 404’s, e.g.:
  1. The page could not be found
  2. 'qthelp://test.assistant/help/en/tool/index.html'

If you need source, I’ve uploaded my example [files.myopera.com].

Also I’d like to know where is cacheDirectory stored, as I need to clear it (with <cacheDirectory> set sections are doubled). I’m using Linux, but I haven’t found any .assistant or .{cache,config}/{Qt,Troltech,Nokia,Assistant}/ entries. I’m using Qt 4.7.0

Thanks for your help.

 Signature 

Earth is a beta site.

6 replies

May 19, 2011

sigrid sigrid
Lab Rat
144 posts

On Linux, the cache directory should exist under $HOME/.assistant.

May 19, 2011

maciek maciek
Lab Rat
67 posts

Well… not on mine Linux :)

 Signature 

Earth is a beta site.

May 19, 2011

sigrid sigrid
Lab Rat
144 posts

Does it get created for you when you start Qt Assistant?

May 19, 2011

maciek maciek
Lab Rat
67 posts

That’s strange but not. And I need to clear cache, while some problems seem to be caused by old values from cache.

 Signature 

Earth is a beta site.

May 19, 2011

sigrid sigrid
Lab Rat
144 posts

There has been several caching fixes in later versions of Qt 4.7.x. Can you try upgrading to Qt 4.7.3 to see if that helps?

The assistant cache directory should be:

./local/share/data/Trolltech/Assistant/….

May 19, 2011

maciek maciek
Lab Rat
67 posts

sigrid wrote:
./local/share/data/Trolltech/Assistant/….

Ahh… there it is! Removing that directory helped. Thanks for information!

 Signature 

Earth is a beta site.

 
  ‹‹ Showing of drawn rectangles      X-Server crashes with multitouch ››

You must log in to post a reply. Not a member yet? Register here!