I tried to connect a textEdit to a label on a different page using stackedWidget, so that when a text is written in textEdit the same text is shown in the label on the next page, but so far it didnt work out. My textEdits Name is "textEdit_name" and my labels Name is "label_name". My Code so far is
void Volk_Auswahl::label_name()
{
connect(ui->textEdit_name, SIGNAL(textChanged()), this, SLOT(label_name()));
}
void Volk_Auswahl::label_name()
{
connect(ui->textEdit_name, SIGNAL(textChanged()), this, SLOT(label_name()));
}
To copy to clipboard, switch view to plain text mode
There is no error but when I type something in textEdit there is no text in label.
Bookmarks