I am trying to compile a program that contains:
Qt Code:
  1. #include <QTextEdit>
  2. //some code
  3. QTextEdit *textbox=new QTextEdit;
  4. //some code
  5. textbox->text();
  6. //some code
To copy to clipboard, switch view to plain text mode 

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