get text from QTextEdit
Unsolved
General and Desktop
-
Having of class QTextEdit
I want to get data from textEdit_1 ("string "test" or QString) on corresponding CheckBox clicked
void Paste::on_checkBox_clicked()
{}
How to proceed?
-
@JacobNovitsky Just check documentation: https://doc.qt.io/qt-6/qtextedit.html#plainText-prop
-
@JacobNovitsky What syntax? toPlainText() is a methof of QTextEdit class which you can call like any other method.
QString text = ui->textEdit->toPlainText();