Home > other >  Content in the QT how to get the line edit?
Content in the QT how to get the line edit?

Time:01-31

Please don't blame the younger brother when reached to the party, don't think he asked actually.. I really go find. Didn't find it.. Google, baidu.. Then look at the API have seen still don't understand... I do is click a button and then get the text contents void Dialog: : on_zh_btn_clicked () [pre] {[/pre] [pre] QLineEdit * text=new QLineEdit (zh_edit1); [/pre] [pre] zh_edit1=(QString) text - & gt; The text (); [/pre] [pre] QMessageBox: : warning (this, "warning", zh_edit1); [/pre] [pre]} [/pre] [pre] in which the line edit object name called zh_edit1 [/pre] [pre] solving.. I didn't get so write is [/pre]

CodePudding user response:

So eldest brother solve, save the children
  • Related