zoukankan      html  css  js  c++  java
  • QT5:类总结

    一.QObject 类

    QObject::d_ptr
    
    QObject::staticMetaObject
    
    QObject::staticQtMetaObject
    QObject::tr()
    
    QObject::event()
    
    QObject::parent()
    
    QObject::thread()
    
    QObject::connect()
    
    QObject::children()
    
    QObject::inherits()
    
    QObject::property()
    
    QObject::userData()
    
    QObject::findChild()
    
    QObject::killTime()
    
    QObject::setParent()
    
    QObject::disconnect()
    
    QObject::objectName()
    
    QObject::startTimer()
    
    QObject::deleteLater()
    
    QObject::eventFilter()
    
    QObject::setProperty()
    
    QObject::setUserData()
    
    QObject::blockSignals()
    
    QObject::findChildren()
    
    QObject::isWidgetType
    
    QObject::moveToThread()
    
    QObject::setObjectName()
    
    QObject::dumpObjectInfo()
    
    QObject::dumpObjectTree()
    
    QObject::signalsBlocked()
    
    QObject::registerUserData()
    
    QObject::removeEventFilter()
    
    QObject::installEventFilter()
    
    QObject::dynamicPropertyNames()
    
    QObject::metaObject()
    
    QObject::d_func()
    
    QObject::sender()
    
    QObject::trUtf8()
    
    QObject::destoryed()
    
    QObject::receivers()
    
    QObject::childEvent()
    
    QObject::timerEvent()
    
    QObject::connectImpl()
    
    QObject::customEvent()
    
    QObject::qt_metacall()
    
    QObject::qt_metacast()
    
    QObject::connectNotify()
    
    QObject::disconnectImpl()
    
    QObject::disconnectNotify()
    
    QObject::isSignalConnected()
    
    QObject::objectNameChanged()
    
    QObject::senderSignalIndex()
    
    QObject::~QObject()
    
    QObject::qt_static_metacall()
    
    QObject::operator = ()

    二.QLabel 类

    QLabel 类继承于 QFrame 类
    QLabel::move()
    
    QLabel::setText()

    三.QFrame 类

    QFrame 类继承于 QWidget 类

    四.QAction 类

    QAction可以添加到菜单栏 工具栏 状态栏上

    五.QPaintDevice 类

    QPaintDevice::painters
    
    QPaintDevice::reserved
    
     
    
    PdmDpiX
    
    PdmDpiY
    
    ...
    QPaintDevice::depth()
    
    QPaintDevice::width()
    
    QPaintDevice::height()
    
    QPaintDevice::devType()
    
    QPaintDevice::widthMM()
    
    QPaintDevice::heightMM()
    
    QPaintDevice::colorCount()
    
    QPaintDevice::logicalDpiX()
    
    QPaintDevice::logicalDpiY()
    
    QPaintDevice::physicalDpiX()
    
    QPaintDevice::physicalDpiY()
    
    QPaintDevice::paintingActive()
    
    QPaintDevice::devicePixelRatio()
    
    QPaintDevice::devicePixeRatioF()
    
    QPaintDevice::devicePixelRatioFScale()
    
    QPaintDevice::metric()
    
    QPaintDevice::redirected()
    
    QPaintDevice::initPainter()
    
    QPaintDevice::sharedPainter()
    
    QPaintDevice::~QPaintDevice()
    
    QPaintDevice::operator = ()

    六.QMessageBox 类 

    #include <QMessageBox>
    
    QMessageBox::warning(this, tr("警告"), tr("用户名和密码错误!"), QMessageBox::Yes);

    七.QApplication QGuiApplication QCoreApplication 类

    QCoreApplication是针对控制台的(基类)
    
    QGuiApplication有简单的界面,没有widget模块(基类+GUI)
    
    QApplication是针对Widget的(基类+GUI+Widget)
  • 相关阅读:
    DDD中的聚合和UML中的聚合以及组合的关系
    服务端高并发分布式架构演进之路
    互联网架构的演变,那些神奇的东西怎么来的?
    WPF 之 创建继承自Window 基类的自定义窗口基类
    IIS 之 在IIS7、IIS7.5中应用程序池最优配置方案
    性能测试工具 之 性能计数器
    IIS 之 线程池最大线程数
    WebService 之 已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
    IIS 之 Web 服务器上的 ASP.NET 进程模型设置
    ADO.Net 之 数据库连接池(二)
  • 原文地址:https://www.cnblogs.com/k5bg/p/15588906.html
Copyright © 2011-2022 走看看