QProcess Open PowerPoint.
-
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
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()); -
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());Thank you !
Is path / to the installation path?
Is there a way to find and run common installation paths for different computer users?
-
Thank you !
Is path / to the installation path?
Is there a way to find and run common installation paths for different computer users?
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.