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

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

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