QString KillStr = "taskkill /f /im main.exe"
QProcess *Process = new QProcess(this)
Process->start(KillStr)
启动
QString filepath = QDir::currentPath()
QString fullpath = filepath+"\\pp\\dist\\start"
QString title = fullpath+"\\main.exe"
title = title.replace("/","\\")
fullpath = fullpath.replace("/","\\")
袜答 QProcess p(this)
p.setWorkingDirectory(fullpath)
p.start("cmd", QStringList()<<"/c"<<"start main.exe")
p.waitForStarted()
p.waitForFinished()
关闭
QProcess p(this)
p.setWorkingDirectory(fullpath)
庆洞 p.start("告差慧cmd", QStringList()<<"/c"<<"taskkill /f /t /im main.exe")
p.waitForStarted()
p.waitForFinished()
楼主,会不会稿者是Qt 设置的问题啊. Qt 的MouseMove 信号是要打开一个开关才会发生的键瞎薯. 默认的Qt widget 是不会神盯给你发送 mouseMove 信号的.欢迎分享,转载请注明来源:内存溢出
评论列表(0条)