2
我得到了這個主要;qt C++關閉窗口後終止線程/程序
#include <QtGui>
#include <iostream>
using namespace std;
#include "tray.h"
void main(int argc, char *argv[])
{
QApplication app(argc, argv);
Tray iets;
app.exec();
}
當我在托盤中打開的東西像;
QFileDialog *dialog = new QFileDialog;
QString dir;
QString test = dialog->getOpenFileName(NULL, NULL, NULL, "Battlefield (*.exe)", NULL, NULL);
for(int i=0; i<test.split("/").size()-1; i++)
dir+= test.split("/").at(i) + "/";
ui->lePath->setText(test);
我選擇了文件終止另一個線程/程序。
如何過濾?
幫助我們來幫助您:請提供您的托盤類的定義。 – ereOn 2010-06-29 14:39:19