1、lineedit输入、输出
输入:
QString a = ui->lineEdit->text();
输出:
ui->lineEdit->setText("Qt");
2、lineedit实时显示时间
ui->TmieEdit->setText(QDateTime::currentDataTime().toString("yyyy-MM-dd hh:mm:ss"));
timer = new QTimer(this);
connect(timer,SIGNAL(timeout()),this,SLOT(timeSlot()));
timer->start(1000);