Just checked the qt documentation, it could be done like this:

void QWebView::selectionChanged() [signal]

This signal is emitted whenever the selection changes -> Link this signal 
to the following function
selectedText : const 
QString<http://qt-project.org/doc/qt-5.0/qtcore/qstring.html>


When the signal selectionChanged is fired, we would get "selectedText", and 
find the node that contains that text, then select that node in Leo

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to