Hello.

i have a main form and form2.ui

in the main form i have the following code:

Qt Code:
  1. void MainWindow::on_pushButton_2_clicked()
  2. {
  3. Form2 *f2 = new Form2;
  4. f2->show();
  5. }
To copy to clipboard, switch view to plain text mode 
so i started the form2.

in the form2 i have a textEdit widget.
1. How can i change the text from main form?
2. How can i click a f2's pushButton or how can i call a function declared in form2.
Thanks.