摘要:
如这样的字符串: 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, 阅读全文
摘要:
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 阅读全文
摘要:
//设置字号 QFont ft; ft.setPointSize(30); ui.SimTimelabel->setFont(ft); //设置颜色 QPalette pa; pa.setColor(QPalette::WindowText, Qt::blue); ui.SimTimelabel-> 阅读全文