摘要: 如这样的字符串: 00:01:23 将3个int转化为字符串时,使用arg的其它参数; 代码如下: QString str = QString("%1:%2:%3").arg(0,2,10,QLatin1Char('0')).arg(1,2,10,QLatin1Char('0')) .arg(23, 阅读全文
posted @ 2019-05-16 17:32 Truman001 阅读(12135) 评论(0) 推荐(0) 编辑
摘要: QTimer *m_sim_timer = new QTimer(this); connect(m_sim_timer, SIGNAL(timeout()), this, SLOT(updateSimTime())); m_timerecord = new QTime(0,0,0); void CT 阅读全文
posted @ 2019-05-16 16:50 Truman001 阅读(657) 评论(0) 推荐(0) 编辑
摘要: //设置字号 QFont ft; ft.setPointSize(30); ui.SimTimelabel->setFont(ft); //设置颜色 QPalette pa; pa.setColor(QPalette::WindowText, Qt::blue); ui.SimTimelabel-> 阅读全文
posted @ 2019-05-16 15:43 Truman001 阅读(4052) 评论(0) 推荐(0) 编辑