Results 1 to 2 of 2

Thread: How to make Qt Assistant to position to another place in a viewed html file

  1. #1
    Join Date
    Jan 2006
    Location
    Moscow, Russia
    Posts
    20
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default How to make Qt Assistant to position to another place in a viewed html file

    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():

    Qt Code:
    1. assistant->showPage("/somepath/myhelp.html#myid")
    To copy to clipboard, switch view to plain text mode 

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to make Qt Assistant to position to another place in a viewed html file

    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?

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.