我想在Windows-Qt应用程序中创建快捷方式以打开控制面板项:设备和打印机,网络和共享以及控制面板本身。我还没有找到解决方案(Windows 7版本)。
First, you could learn how to launch control panel applets using the command line (eg take a look at this ). Then issue the same commands from a Qt app using the QProcess
class :
#include <QProcess>
void launch(QString command, QStringList arguments)
{
QProcess::startDetached(command, arguments);
}
For example:
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
launch("control", QStringList() << "printers");
return a.exec();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.