Are you sure you have this?
QTextCursor cur();
That will not make a variable so I think you are ignoring some compiler warnings later on.
Correct is
|
Source code
|
1
|
QTextCursor cur;
|
Have you read the documents?
http://developer.qt.nokia.com/doc/qt-4.8…rsor.html#block
QTextCursor::block()
block() does not take any arguments but you are giving it some. Again, this should give you compiler error.
what class is ui->text????