• 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)
  • 相关阅读:
    使用Regex.Replace只替换字符串一次
    Socket
    [转载]ASP.NET中在不同的子域中共享Session
    C#构造函数
    C# 的 ArrayList
    [转]决定何时使用 DataGrid、DataList 或 Repeater
    window.showModalDialog弹出对话框刷新问题
    ASP.NET] 选择文件夹的对话框
    网页打印javascript:window.print()
    开展工作
  • 原文地址:https://www.cnblogs.com/k5bg/p/15588906.html
Copyright © 2020-2023  润新知