1.QString filepath = QFileDialog::getOpenFileName(this, GBK::ToUnicode("选择文件")); //返回打开的文件的路径;
2.QDialog // 对话框类;
3.QTimer //定时器类;
定时器事件函数:virtual void SendDlg::timerEvent(QTimerEvent * event);
定时器开始函数:m_TimerID = startTimer(500);
定时器ID :if (event->timerId() == m_TimerID)
killTimer(m_TimerID);//定时器的杀死函数;
4. #include "winsock.h"
#include "windows.h"
::sleep(50); //系统睡眠时间;
5. QThread //线程类;
void run(); //线程入口函数;
start(); //线程的开启函数;
wait(); //线程的结束;
delete m_task; //关闭线程函数;