Results 1 to 6 of 6

Thread: Qt Assistant as Custom Help Viewer

  1. #1
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt Assistant as Custom Help Viewer

    Hi,
    I use Qt Assistant as Custom Help Viewer.
    I call it from my application like in the example:
    Qt Code:
    1. ...
    2. if (!proc)
    3. proc = new QProcess();
    4.  
    5. if (proc->state() != QProcess::Running) {
    6. QString app = QCoreApplication::applicationDirPath() +
    7. QDir::separator();
    8. #if !defined(Q_OS_MAC)
    9. app += QLatin1String("assistant");
    10. #else
    11. app += QLatin1String("Assistant.app/Contents/MacOS/Assistant");
    12. #endif
    13.  
    14. args << QLatin1String("-collectionFile")
    15. << QCoreApplication::applicationDirPath()
    16. + QDir::separator()
    17. + QLatin1String("helpfile.qhc")
    18. << QLatin1String("-enableRemoteControl");
    19.  
    20. proc->start(app, args);
    21. ...
    To copy to clipboard, switch view to plain text mode 
    If I don't close a documentation tab in the Assistant, i.e. just close the Assistant, and then use my Help button several times in a row I've got several empty tabs like in an attached image.
    How can I get rid of it?
    Thanks in advance.
    Attached Images Attached Images

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

    Default Re: Qt Assistant as Custom Help Viewer

    Did you think about going through the QAssistantClient class?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt Assistant as Custom Help Viewer

    I stopped at the beginning of its description, which says "This class is obsolete"

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

    Default Re: Qt Assistant as Custom Help Viewer

    It is, because now we have the much better QtHelp module but QAssistantClient is closest to what you are trying to do right now. Your current approach is much more obsolete than using QAssistantClient
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    genomega (2nd February 2010)

  6. #5
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt Assistant as Custom Help Viewer

    Qt documentation says otherwise:
    This class is obsolete and only required when using the old Qt Assistant, now called assistant_adp. If you want to use the new Qt Assistant as a remote help viewer, simple create a QProcess instance and specify assistant as its executable.

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

    Default Re: Qt Assistant as Custom Help Viewer

    Well... true.

    I just had a look at your code again, make sure the collection file you are trying to call exists. Also make a test where you don't pass the collection though the commandline but rather register it first against Qt Assistant.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Embed VNC Viewer
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 15th March 2021, 16:03
  2. Hex viewer in qt?
    By vishal.chauhan in forum Qt Programming
    Replies: 8
    Last Post: 21st June 2013, 08:58
  3. Application deployment with assistant as help viewer
    By jml in forum Installation and Deployment
    Replies: 18
    Last Post: 5th January 2009, 21:42
  4. HTML viewer
    By wj313 in forum Newbie
    Replies: 8
    Last Post: 13th June 2008, 19:02
  5. jpeg viewer
    By chap19150 in forum Qt Programming
    Replies: 9
    Last Post: 6th June 2006, 11:57

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.