开发调试
MouseMedia
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【软件技术】QT 中 调试信息输出
在使用qDebug输出QString,直接输出会有问题,正确的方法如下: QString readString = “Hello World!”; qDebug("readString = %s",qPrintable(readString)); 应该使用如下函数转换一下: const char * qPrintable(const QString & str) Returns ...原创 2019-11-26 13:21:22 · 394 阅读 · 0 评论 -
【开发调试】QT 中重复调用paintGL显示
在最新版本 QT5.13 中重复调用 paintGL 进行绘制方法 void MainWidget::paintGL() { QMetaObject::invokeMethod(this,"update",Qt::QueuedConnection); } 其他定时触发:QTimer::singleShot(10, this,SLOT(eventOperation()));单sing...原创 2019-11-26 15:36:34 · 1296 阅读 · 0 评论 -
【开发调试】QT中求时间差方法
QTime startTime = QTime::currentTime(); QThread::msleep(SLEEP_TIME_MILL); QTime stopTime = QTime::currentTime(); int elapsed = startTime.msecsTo(stopTime); qDebug()<<"QTime.currentTime ="<&l...原创 2019-11-26 15:47:07 · 1313 阅读 · 0 评论
分享