Unsolved CONNECT
-
HI.i will connect two textedit .i want write one thing in first an
.that show someting diferien
Encrypt this is for -
Hi
You can use signals + slots for that
So when textedit one changes it can call your slot and
you can do whatever u want with the text before
calling append on edit 2See
http://doc.qt.io/qt-5/qtextedit.html#html-prop
TextChanged() signal
and apprend() slotIts very unclear what you will do to text1 before adding it into text2
-
@mrjj tanks but i will write something in one textedit and he give me something different in second .
i write below code but dont work
QString A;
QString As;
if(A)="e"
AS="r"
connect(ui->tx0,SIGNAL(textEdited(A)),ui->tx,SLOT(setText(AS))) -
@M.ASADI
Its not correct syntax.
You cannot give it values in the connect.
It comes with the signal when triggered.did you study
http://doc.qt.io/qt-5/signalsandslots.html ?its
textEdited(const QString & text)
so
connect(ui->tx0,SIGNAL(textEdited(const QString & )),ui->tx,SLOT(setText(const QString & )))