QTextEdit save data in



  • Hello, Qt guys!
    If I have first window with 1 QTextEdit and I want to save 2QLineEdit from second window if I clicked button "Salveaza" in QTextEdit how can'I do?
    @void InsertData::on_salveaza_clicked()
    {
    QString strDate = ("Nume: %1 - Prenume: %2")
    .arg(ui->nume->text())
    .arg(ui->prenume->text());

    QObject *act = new QMainWindow();
    //act->
    act->textEdit->setText(strDate);
    

    }
    @



  • Hi,
    Can you better explain what you want to do ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.