PDA

View Full Version : QTextEdit getCursorPosition in Qt4 (...and how to fully migrate to Qt4?)



macias
23rd April 2007, 17:07
Hello,

My specific question is how to mimic Qt3 getCursorPosition using native QTextEdit from Qt4, not using Q3TextEdit (of course in the latter case there would be no need to mimic anything, such method simply exists for Q3TextEdit).

So -- what methods should I call to get the paragraph index and character index? I've read Qt manual, but I didn't find it.

Thanks in advance.

More general question though is -- where can I find description how to fully migrate to Qt4? I can use Q3 classes in Qt4 and this works, but now I want to use only Qt4 native classes, and I substituting Qt3 methods with Qt4 equivalents (as above) is not easy (due to fact the manual only covers what is left, not what was removed and how to handle it).

have a good day, bye

jacek
23rd April 2007, 17:48
So -- what methods should I call to get the paragraph index and character index? I've read Qt manual, but I didn't find it.
How about QTextCursor::blockNumber() and QTextCursor::columnNumber()?