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. QProcess Open PowerPoint.
Forum Updated to NodeBB v4.3 + New Features

QProcess Open PowerPoint.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 608 Views
  • 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.
  • P Offline
    P Offline
    Pada_
    wrote on last edited by Pada_
    #1

    Can I run an external program in Qt?

    I want to run PowerPoint with QProcess.

    Not in Qt, with program execution.

    i want to open POWERPNT.EXE

    D 1 Reply Last reply
    0
    • P Pada_

      Can I run an external program in Qt?

      I want to run PowerPoint with QProcess.

      Not in Qt, with program execution.

      i want to open POWERPNT.EXE

      D Offline
      D Offline
      Devopia53
      wrote on last edited by
      #2

      @Pada_

      If the PPT file already exists and PPT is installed, like this:

      QString program("C:/path/to/A.PPTX");
      QDesktopServices::openUrl(QUrl::fromLocalFile(program));
      

      or

      QString program("C:/path/to/POWERPNT.EXE");
      QProcess::startDetached(program, QStringList());
      
      P 1 Reply Last reply
      4
      • D Devopia53

        @Pada_

        If the PPT file already exists and PPT is installed, like this:

        QString program("C:/path/to/A.PPTX");
        QDesktopServices::openUrl(QUrl::fromLocalFile(program));
        

        or

        QString program("C:/path/to/POWERPNT.EXE");
        QProcess::startDetached(program, QStringList());
        
        P Offline
        P Offline
        Pada_
        wrote on last edited by
        #3

        @Devopia53

        Thank you !

        Is path / to the installation path?

        Is there a way to find and run common installation paths for different computer users?

        D 1 Reply Last reply
        0
        • P Pada_

          @Devopia53

          Thank you !

          Is path / to the installation path?

          Is there a way to find and run common installation paths for different computer users?

          D Offline
          D Offline
          Devopia53
          wrote on last edited by
          #4

          @Pada_

          Is path / to the installation path?

          Yes

          Is there a way to find and run common installation paths for different computer users?

          It uses the MSI(Application Installation and Servicing) API or the method of searching the registry directly. With MsiLocateComponent () you can simply get the path where PPT is installed. This question also has nothing to do with Qt.

          1 Reply Last reply
          2

          • Login

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