Qt
飘羽之泪
追赶疯狂的目标
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
在QT中对label增加单击事件
1.加入头文件 #include <QMouseEvent> 2.在构造函数数添加该部件的事件过滤器, ui->label->installEventFilter(this); 3.事件过滤器 bool MainWindow::eventFilter(QObject *watched, QEvent *event) { static in...原创 2018-05-10 09:04:11 · 2610 阅读 · 0 评论 -
Qt获取编译时间
#include <QCoreApplication> #include <QDebug> #include <QDate> #include <QTime> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); static const QDat...原创 2019-06-26 14:43:11 · 2257 阅读 · 0 评论
分享