Answering my own question :
billio wrote: > > ... > Falling back on QTextCursor I can select the block at the cursor, obtain > the selection and then the HTML of the associated fragment but this is > wrapped with non-relevant HTML to create a complete document which is not > what I need. > ... > I have decided to follow this course and selecting a word rather than a block, stripping out the fragment marked by splitting the returned HTML at <--StartFragment--> <--EndFragment-->. This gives me the link associated with the clicked word. -- View this message in context: http://old.nabble.com/QTextEdit-obtaining-the-contents-of-a-block-tp32219198p32248331.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt