PDA

View Full Version : How to make Qt Assistant to position to another place in a viewed html file



vitaly
7th July 2006, 12:14
Hello,

I use Qt 3.3.2 version of Qt. I chose Qt Assistant as help browser. In the code I use QAssistantClient to open the Assistant window and pass to it an html page. I need to position the Assistant to a particular place in the file that defined by tag <a name="id"/>. I tried to pass the following string to QAssistantClient::showPage():



assistant->showPage("/somepath/myhelp.html#myid")


It works only when the Assistant is opened first. Next call of showPage() will not position the opened html file into another place.

What is wrong? Can I position already openned html file into another place?

Thanks,
Vitaly

wysota
18th July 2006, 12:06
Maybe the help file is not long enough (or exactly the label is not enough far away from the end of the file) to make it possible for assistant to show it on the top of the page? Have you tried with different documents?