<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] Extract text block from QGraphicsTextItem based on QPointF]]></title><description><![CDATA[<p dir="auto">Dear all,<br />
I'm trying to find out a way to extract the word at position &lt;x,y&gt; of a QGraphicsTextItem.<br />
I looking for a method on the documentation, but it seems that there is no method that return the character or the word given a &lt;x,y&gt; position.</p>
<p dir="auto">Any suggestions ??</p>
<p dir="auto">Thanks,<br />
Gianluca.</p>
]]></description><link>https://forum.qt.io/topic/28201/solved-extract-text-block-from-qgraphicstextitem-based-on-qpointf</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 08:38:44 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/28201.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jun 2013 07:46:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Extract text block from QGraphicsTextItem based on QPointF on Wed, 12 Jun 2013 13:09:31 GMT]]></title><description><![CDATA[<p dir="auto">Yes !! Thank you.<br />
You solved two problems... the one of this thread, and another that I posted in another thread :-)</p>
]]></description><link>https://forum.qt.io/post/182543</link><guid isPermaLink="true">https://forum.qt.io/post/182543</guid><dc:creator><![CDATA[Gianluca]]></dc:creator><pubDate>Wed, 12 Jun 2013 13:09:31 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Extract text block from QGraphicsTextItem based on QPointF on Wed, 12 Jun 2013 10:10:13 GMT]]></title><description><![CDATA[<p dir="auto">Have you taken a look at QAbstractTextDocumentLayout::hitTest?</p>
<p dir="auto">I have never tried this, but you can get a QAbstractTextDocumentLayout from the QTextDocument, and the QTextDocument from the QGraphicsTextItem. Should work, if you transform the coordinates correctly.</p>
]]></description><link>https://forum.qt.io/post/182526</link><guid isPermaLink="true">https://forum.qt.io/post/182526</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Wed, 12 Jun 2013 10:10:13 GMT</pubDate></item></channel></rss>