<?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 add space to QLabel]]></title><description><![CDATA[<p dir="auto">hi guys,,</p>
<p dir="auto">im trying to do chat,,<br />
if i type message in textedit and enter send button its showing in Qlabel but if give space between two text its considering next line , i want that in same line<br />
please help me<img src="https://ddgobkiprc33d.cloudfront.net/0a6719e1-aee1-4885-9eb6-da2ec9ae5843.JPEG" alt="0_1551332181273_1551332130780.JPEG" class=" img-fluid img-markdown" /></p>
<p dir="auto">thanks in advance</p>
]]></description><link>https://forum.qt.io/topic/100209/how-to-add-space-to-qlabel</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 04:31:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/100209.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Feb 2019 05:36:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to add space to QLabel on Fri, 01 Mar 2019 05:37:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bharth">@<bdi>Bharth</bdi></a> I think what <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> wants to say is that you already can add text entries to a QListWidget without the need to create QLabel (see <a href="https://doc.qt.io/qt-5/qlistwidget.html#addItem" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qlistwidget.html#addItem</a> and <a href="https://doc.qt.io/qt-5/qlistwidget.html#addItems" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qlistwidget.html#addItems</a>). So, still not clear why you create and insert QLabel instances.<br />
To remove a row use <a href="https://doc.qt.io/qt-5/qlistwidget.html#takeItem" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qlistwidget.html#takeItem</a></p>
]]></description><link>https://forum.qt.io/post/514749</link><guid isPermaLink="true">https://forum.qt.io/post/514749</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 01 Mar 2019 05:37:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Fri, 01 Mar 2019 04:24:17 GMT]]></title><description><![CDATA[<p dir="auto">we can directly insert meassage to Qlistwidget,,,for server integration, we must need qlist object to save datas from server. so i created separate cell for sender side  and reciver side then i added these to Qlistwidget</p>
]]></description><link>https://forum.qt.io/post/514744</link><guid isPermaLink="true">https://forum.qt.io/post/514744</guid><dc:creator><![CDATA[Bharth]]></dc:creator><pubDate>Fri, 01 Mar 2019 04:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 20:38:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Why are you using QLabel if you have a QListWidget anyway ?</p>
]]></description><link>https://forum.qt.io/post/514712</link><guid isPermaLink="true">https://forum.qt.io/post/514712</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 28 Feb 2019 20:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 13:18:16 GMT]]></title><description><![CDATA[<p dir="auto">in Qlistwidet,,,, i created separete widget class for label then im adding that to qlistwidget,,,<br />
this is the class for qlabel and for copy ,edit im passing string but what to pass for delete entire row<br />
..................................................<br />
connect(pCopyText, &amp;QAction::triggered, <a>this</a><br />
{<br />
(dynamic_cast&lt;ChatPage*&gt;(m_pParentWidget))-&gt;copyText(p_mstr);<br />
});<br />
connect(pDeleteText, &amp;QAction::triggered, <a>this</a><br />
{<br />
(dynamic_cast&lt;ChatPage*&gt;(m_pParentWidget))-&gt;deleteText();<br />
});<br />
connect(pEditText, &amp;QAction::triggered, <a>this</a><br />
{<br />
(dynamic_cast&lt;ChatPage*&gt;(m_pParentWidget))-&gt;editText(p_mstr);<br />
});</p>
]]></description><link>https://forum.qt.io/post/514629</link><guid isPermaLink="true">https://forum.qt.io/post/514629</guid><dc:creator><![CDATA[Bharth]]></dc:creator><pubDate>Thu, 28 Feb 2019 13:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 11:59:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bharth">@<bdi>Bharth</bdi></a> I'm sure you can. How exactly depends on how all this is implemented. Where are these QLabels inserted?</p>
]]></description><link>https://forum.qt.io/post/514618</link><guid isPermaLink="true">https://forum.qt.io/post/514618</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 28 Feb 2019 11:59:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 10:17:53 GMT]]></title><description><![CDATA[<p dir="auto">i have to delete message from listwidget(selected message should delete)<br />
ex: hi message is in above list right,,i have to delete that one</p>
]]></description><link>https://forum.qt.io/post/514591</link><guid isPermaLink="true">https://forum.qt.io/post/514591</guid><dc:creator><![CDATA[Bharth]]></dc:creator><pubDate>Thu, 28 Feb 2019 10:17:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 10:12:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bharth">@<bdi>Bharth</bdi></a> said in <a href="/post/514578">How to add space to QLabel</a>:</p>
<blockquote>
<p dir="auto">how to delete entire row i gave popUp option next to message like copy,edit,delete</p>
</blockquote>
<p dir="auto">Sorry, I don't understand. What row do you want to remove and from where?</p>
]]></description><link>https://forum.qt.io/post/514588</link><guid isPermaLink="true">https://forum.qt.io/post/514588</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 28 Feb 2019 10:12:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 09:58:51 GMT]]></title><description><![CDATA[<p dir="auto">thank you so much now woking fine</p>
<p dir="auto">one more doubt please help me<br />
how to delete entire row i gave popUp option next to message like copy,edit,delete</p>
]]></description><link>https://forum.qt.io/post/514578</link><guid isPermaLink="true">https://forum.qt.io/post/514578</guid><dc:creator><![CDATA[Bharth]]></dc:creator><pubDate>Thu, 28 Feb 2019 09:58:51 GMT</pubDate></item><item><title><![CDATA[Reply to How to add space to QLabel on Thu, 28 Feb 2019 06:06:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bharth">@<bdi>Bharth</bdi></a> Set this to false: <a href="https://doc.qt.io/qt-5/qlabel.html#wordWrap-prop" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qlabel.html#wordWrap-prop</a></p>
]]></description><link>https://forum.qt.io/post/514526</link><guid isPermaLink="true">https://forum.qt.io/post/514526</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 28 Feb 2019 06:06:14 GMT</pubDate></item></channel></rss>