今天在群里看到一道题,有点意思:#include "mainwindow.h"#include #include using namespace std;class A{public : A(){m_f1=1;} int m_f1; void fun(){ coutf... Read More
posted @ 2015-08-12 21:46 findumars Views(235) Comments(0) Diggs(0)
Qt打开外部程序 [cpp] view plaincopy //1.通过调用系统函数 system("opt/myApp"); //这是linux下的,windows下可以用WinExec等函数 //2.通过QProcess,阻塞调用 QProcess::execute("/opt/myApp"); Read More
posted @ 2015-08-12 05:23 findumars Views(7349) Comments(0) Diggs(0)