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. Invoking Qt Assistant
Qt 6.11 is out! See what's new in the release blog

Invoking Qt Assistant

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 354 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    The "Simple Text Viewer" example for Qt Assistant uses an Assistant class and QProcess to run the Assistant application.

    In a simple case where I just want to launch Qt Assistant as a separate process is there any reason that I shouldn't just do something like this:

    system("assistant -collectionFile -myapp.qhc&");

    or is that hopelessly naive of me?

    Thanks
    David

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2
      Key Differences
      Feature	                system	                             QProcess
      Framework	        Standard C/C++ Library	          Qt Framework
      Execution	        Blocking only	                  Blocking or non-blocking
      Process Control	        Limited	                          Full control (start, stop, etc.)
      I/O Interaction	        None	                          Read/write to stdin/stdout/stderr
      Platform Independence	Yes, but behavior may vary	  Fully platform-independent
      Security	        Vulnerable to shell injection	  Safer with proper usage
      Use Case	        Simple commands in console apps	  GUI apps, complex process management
      
      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by
        #3

        Thanks - gives me something for the little grey cells to ponder.

        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