zoukankan      html  css  js  c++  java
  • 20191010

    caption  标题
    field    字段
    policy   规则
    emergency  紧急
    程序中添加 串口模块: qt += serialport

    命名空间宏定义: QT_BEGIN_NAMESPACE  QT_END_NAMESPACE  
                   QT_USE_NAMESPACE
    //Returns a list of available serial ports on the system.
    const auto infos = QSerialPortInfo::availablePorts();
    obj->setFocus(); 设置默认焦点

    QMutex 提供线程之间的访问序列化。
    如果另一个线程已锁定互斥锁,则此调用将被阻止,直到该线程已将其解锁。
    QWaitCondition 为线程同步提供了条件变量
    QWaitCondition.wait() 释放lockedmutex并等待等待条件。

    forever {
     mutex.lock();
     keypressed.waited(&mutex);
     do_something();
     mutex.unlock();
    }

    QTextCodec 提供文本间的编码转换

    verify   验证


    设置鼠标:

      QCursor cursor;
        QPixmap pixmap("mm.png");
        cursor = QCursor(pixmap,-1,-1);
        cursor.setPos(100,100);
        setCursor(cursor);
        //setCursor(QCursor(Qt::PointingHandCursor));  //设置鼠标样式
        
        
    而#progma pack(1) 让编译器将结构体数据强制 连续排列


    检测系统磁盘空间:

    #include <QStorageinfo>
    QStorageInfo starage("path");磁盘信息对象



  • 相关阅读:
    软件测试理论提炼
    测试左移与右移
    RFS工具基础学习
    机遇——沃特&#183;马龙
    SVN (Subversion+tortoiseSVN)使用手册
    MongoDB基本使用
    win7系统快捷键操作大全
    SQL Server Profiler使用方法
    转载《soapUI 学习日志》
    HTMLTestRunner中文测试报告
  • 原文地址:https://www.cnblogs.com/countryboy666/p/11645636.html
Copyright © 2011-2022 走看看