zoukankan      html  css  js  c++  java
  • 线程

    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;  //关闭线程函数;

  • 相关阅读:
    npm改为淘宝镜像
    html中table中td内容换行
    git 切换文件夹路径
    git经常使用的命令
    day16
    day15
    day13
    day14
    day12
    day11
  • 原文地址:https://www.cnblogs.com/weiyouqing/p/7553752.html
Copyright © 2011-2022 走看看