Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想QLineEdit用于输入。我的问题是我不知道如何阅读它的内容。
QLineEdit
假设我有:
QLineEdit *edit = new QLineEdit("");
将其添加到 GUI 后如何获取内容?提前致谢。
它有一个text属性,所以只需这样做:
text
edit->text();