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)
  • 相关阅读:
    学习 Message(12): 整合鼠标 Down 消息
    合并两个 Wav 文件流的函数 回复 "刘文强" 的问题
    “博客无双”第一期拍卖活动获奖名单公告
    [获奖公告]“博客无双”12月27日第一期获奖名单
    “博客无双”活动拍卖时间调整公告
    致歉
    祝大家新年快乐
    博客园电子期刊2010年12月刊发布啦
    “博客无双”拍卖活动将于14:00开始
    2011年4月微软最有价值专家(MVP)申请截止时间:2011年1月13日
  • 原文地址:https://www.cnblogs.com/k5bg/p/15588906.html
Copyright © 2011-2022 走看看