On Wed, Jan 27, 2010 at 9:33 PM, Edward K. Ream <[email protected]> wrote:

> 2 is more likely.  But now that we know what is happening, there is an
> easy workaround.  The i,j args passed to
> w.delete(i,j) come from w.getSelectionRange, so we can always (or
> almost always) use  w.textCursor().removeSelectedText() to delete the
> text.  I expect this to work.  Stay tuned.

Glad that you found a fix - however, remember that there can be
arbitrary number of cursors associated with the document, apart from
the "default" cursor that the user is seeing. You can construct
QTextCursor objects by yourself. Think of them as pointers to the
underlying document.


-- 
Ville M. Vainio
http://tinyurl.com/vainio

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to