Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How embed the online help in the application
Qt 6.11 is out! See what's new in the release blog

How embed the online help in the application

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zheka777
    wrote on last edited by
    #1

    Hello all,
    I am very stupid and I dont understand how to embed the online help in the application.

    I have created the collection file "colelction.qhc", but I dont know how to embed it in my Application.

    If I click on the menu "Help" I should see now the Help TextBrowser....

    Can someone explain me how can I do this please?

    Hochschule Kempten

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonride
      wrote on last edited by
      #2

      Hello, first you need a process to execute the Qt assistant. Then assign an action to menu help item, so you have:

      in mainwindow.h
      @QProcess helpProcess;@

      @void on_actionHelp_triggered();@

      in mainwindow.cpp
      @void MainWindow::on_actionHelp_triggered()
      {
      const QStringList arguments = QStringList()
      << QLatin1String("-collectionFile")
      << QLatin1String("help.qhc")
      << QLatin1String("-enableRemoteControl");

      helpProcess.start(QLatin1String("assistant"), args);
      
      if(!helpProcess.waitForStarted())
      {  
         // error control
      }
      

      }@

      Note that help.qhc file must be in the same folder that your application executable.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You might be interest by the "Help module":http://qt-project.org/doc/qt-5.0/qthelp/qthelp-module.html

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved