Qt 6.11 is out! See what's new in the release
blog
how to get info from "textChanged " slot?
-
Please help me to code this in C++ .
void MainWindow_Bluetoothctl::on_textEdit_7_textChanged() { qDebug()<< "DEBUG " << Q_FUNC_INFO ; qDebug()<< "DEBUG @line " << QString::number(__LINE__); // get the actual text // QString text = textEdit->toplainText(); no go // get the QTextEdit object pointer BTUL->Sub_CopyQTextEdit(ui->textEdit_7,ui->textEdit_7); } -
Please help me to code this in C++ .
void MainWindow_Bluetoothctl::on_textEdit_7_textChanged() { qDebug()<< "DEBUG " << Q_FUNC_INFO ; qDebug()<< "DEBUG @line " << QString::number(__LINE__); // get the actual text // QString text = textEdit->toplainText(); no go // get the QTextEdit object pointer BTUL->Sub_CopyQTextEdit(ui->textEdit_7,ui->textEdit_7); }@AnneRanch said in how to get info from "textChanged " slot?:
// QString text = textEdit->toplainText(); no go
You should find
QString text = ui->textEdit_7->toPlainText();works. Note the capitalization.