PDA

View Full Version : QTextEdit error



scrasun
7th July 2009, 17:41
I am trying to compile a program that contains:


#include <QTextEdit>
//some code
QTextEdit *textbox=new QTextEdit;
//some code
textbox->text();
//some code

but I keep getting the error: "error: ‘class QTextEdit’ has no member named ‘text’"
p, li { white-space: pre-wrap; }
Does anyone know why this is happening or how to solve it.
Any help is appreciated

Lykurg
7th July 2009, 17:51
"error: ‘class QTextEdit’ has no member named ‘text’
Hmm, let me guess, you get the error because QTextEdit dont have a member named text() anymore? (Unless you have Qt3 support enabled...)
use QTextEdit::toHtml() or QTextEdit::toPlainText() instead.

scrasun
8th July 2009, 15:30
ok thanks, it would be helpful if the developers of 'qdevelop' updated it to show these changes.

Lykurg
8th July 2009, 18:47
update what? Source code, docs?