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)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)