View Full Version : How to get current character from QTextEdit
iamjayanth
6th April 2009, 08:52
How can I get the character at current cursor position in QTextEdit . I am using QT3.3 .
wagmare
6th April 2009, 08:57
QTextCursor cursor(TextEdit->textCursor());
int QTextCursor::position () const
TextEdit->setTextCursor(cursor);
try this ...
spirit
6th April 2009, 09:05
take a look at QTextEdit::getCursorPosition (http://doc.trolltech.com/3.3/qtextedit.html#getCursorPosition).
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.