Hello! I want to make QTextCursor available in QScriptEngine. So I'm trying to compile this code:
Qt Code:
  1. QTextCursor tc = textEdit->textCursor();
  2. QScriptValue cr = script_engine.newQObject(&tc);
To copy to clipboard, switch view to plain text mode 

But the compiler says about the second line:
error: no matching function for call to 'QScriptEngine::newQObject(QTextCursor*)'

What I'm doing wrong?