Hi,

I have a simple QT C++ application.
This is only part of the code:

QTextEdit* cont;
for (int x=0; x<2; x++) {
    cont = this->findChild<QTextEdit *>("content0_"+QString::number(x));
    QString con += cont->toPlainText();

    // display con in a QTextEdit anywhere you want
}

Two QTextEdit have different values. Let just say "AA" and "BB".
The problem is the results is "AAAA" not "AABB";

The problem is in the "cont" variable. I won't get the new value.

Can you please help me.

saeyonghe.ha commented: compiler +0

Please disregard this. thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.