PDA

View Full Version : QTextBrowser Clear selection



sreedhar
3rd April 2006, 12:42
hi,
I want to clear the selection from the QTextBrowser. (clear the highlighting). I am using
Qt4.1

Please reply me how this can be done,

regards,
sreedhar

wysota
3rd April 2006, 13:53
By accessing the text cursor and calling QTextCursor::clearSelection(). Remember to set the cursor back after you modify it.

sreedhar
4th April 2006, 08:23
Thanks a lot