how to copy a string from one text box to another textbox?
there are 2 text boxes, text1 and text2 and an enter button.. on pressing enter button contents from text1 widget should get transferred to text2..
only the function to copy from text1 to text2 is required..
Pls check the following code is correct
Qt Code:
void update() { QString str; str=text1->toPlainText(); text2->setText(str); }To copy to clipboard, switch view to plain text mode
Bookmarks