<?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[How to set QPlainTextEdit &#x27;s text to mapper-&gt;currentIndex?]]></title><description><![CDATA[<p dir="auto">I want to convert mapper-&gt;currentIndex() to string, in order to put it in a QPlainTextEdit.<br />
I tried:</p>
<pre><code>int i = mapper-&gt;currentIndex();
ui.currentIndex_txt-&gt;setPlainText(i.toString());
</code></pre>
<p dir="auto">Also:</p>
<pre><code>QString *i = QString(mapper-&gt;currentIndex());
</code></pre>
<p dir="auto">But both fail.<br />
How should I do it?</p>
]]></description><link>https://forum.qt.io/topic/76256/how-to-set-qplaintextedit-s-text-to-mapper-currentindex</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 16:11:31 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/76256.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Feb 2017 11:49:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set QPlainTextEdit &#x27;s text to mapper-&gt;currentIndex? on Thu, 16 Feb 2017 12:06:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/panoss">@<bdi>Panoss</bdi></a> Check <a href="http://doc.qt.io/qt-5/qstring.html#number" target="_blank" rel="noopener noreferrer nofollow ugc">QString::number</a></p>
]]></description><link>https://forum.qt.io/post/376256</link><guid isPermaLink="true">https://forum.qt.io/post/376256</guid><dc:creator><![CDATA[p3c0]]></dc:creator><pubDate>Thu, 16 Feb 2017 12:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to set QPlainTextEdit &#x27;s text to mapper-&gt;currentIndex? on Thu, 16 Feb 2017 12:23:34 GMT]]></title><description><![CDATA[<p dir="auto">Thanks it works!</p>
]]></description><link>https://forum.qt.io/post/376260</link><guid isPermaLink="true">https://forum.qt.io/post/376260</guid><dc:creator><![CDATA[Panoss]]></dc:creator><pubDate>Thu, 16 Feb 2017 12:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to set QPlainTextEdit &#x27;s text to mapper-&gt;currentIndex? on Thu, 16 Feb 2017 12:06:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/panoss">@<bdi>Panoss</bdi></a> Check <a href="http://doc.qt.io/qt-5/qstring.html#number" target="_blank" rel="noopener noreferrer nofollow ugc">QString::number</a></p>
]]></description><link>https://forum.qt.io/post/376256</link><guid isPermaLink="true">https://forum.qt.io/post/376256</guid><dc:creator><![CDATA[p3c0]]></dc:creator><pubDate>Thu, 16 Feb 2017 12:06:53 GMT</pubDate></item></channel></rss>