1.lineedit不可修改,但内容不变成灰色
ui->lineEdit->setFocusPolicy(Qt::NoFocus);
2.lineedit不可修改,内容变成灰色
ui->lineEdit->setEnabled(false);
3.lineedit不显示边框
ui->lineEdit->setStyleSheet("background:transparent;border-width:0;border-style:outset");
1.lineedit不可修改,但内容不变成灰色
ui->lineEdit->setFocusPolicy(Qt::NoFocus);
2.lineedit不可修改,内容变成灰色
ui->lineEdit->setEnabled(false);
3.lineedit不显示边框
ui->lineEdit->setStyleSheet("background:transparent;border-width:0;border-style:outset");