QT中如何读取Widget的ui中lineEdit的值?

2024-11-29 16:27:43
推荐回答(1个)
回答1:

QLineEdit * pEdit;
QString txt = pEdit->text();