Qt Code:
  1. int main(int argc, char *argv[]){
  2. QApplication a(argc, argv);
  3. Text w;
  4. w.show();
  5. return a.exec();
  6. }
To copy to clipboard, switch view to plain text mode 
This is where the error i am gettting from main.cpp.
I was creating a textEdit by code not in designer form ,like this
Qt Code:
  1. textEdit = new QTextEdit(this);
To copy to clipboard, switch view to plain text mode 
I just want to know how to promote the custom MyTextEdit(which inherits QTextEdit) class to texEdit area....