<?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[QT Emails input widget]]></title><description><![CDATA[<p dir="auto">I want input emails widget like on Google email or other emails service. For example:<br />
<a href="http://postimg.org/image/7pnb42gyj/" target="_blank" rel="noopener noreferrer nofollow ugc">http://postimg.org/image/7pnb42gyj/</a></p>
<p dir="auto">I find the solution with qlistwidget with icons mode and qlineedit. I want to input to qline edit a text, and when i press enter a new emails from qlineedit sets to qlistwidget. But, qlineedit not showing in qlistwidget. How to fix it?</p>
<p dir="auto">qhbl = new QHBoxLayout();<br />
qlw = new QListWidget();<br />
qlw-&gt;setViewMode(QListWidget::IconMode);<br />
qlw-&gt;setMovement(QListWidget::Static);<br />
qlw-&gt;setResizeMode(QListWidget::Adjust);</p>
<pre><code>connect(qlw, SIGNAL(customContextMenuRequested(const QPoint &amp;)),
         SLOT(showContextMenuForWidget(const QPoint &amp;)));
qlw-&gt;setContextMenuPolicy(Qt::CustomContextMenu);


addNewElement("test111111111");
addNewElement("test222222222");
addNewElement("test3333");
addNewElement("test4444");

QListWidgetItem* qlwiItem1 = new QListWidgetItem("test!");
QPushButton* test = new QPushButton();
test-&gt;setText("pushbutton");
qlw-&gt;addItem(qlwiItem1);


QListWidgetItem* qlwiItem = new QListWidgetItem();
qle = new QLineEdit();
qle-&gt;setText("input");
connect(qle, SIGNAL(returnPressed()), this, SLOT(addNewElement()));
qle-&gt;setFixedWidth(100);
qle-&gt;setMinimumWidth(90);
qle-&gt;setMaximumWidth(110);
qlw-&gt;addItem(qlwiItem);
qlw-&gt;setItemWidget(qlwiItem, qle);
qlw-&gt;setStyleSheet("QListWidgetItem {border:1px}");
qhbl-&gt;addWidget(qlw);
ui-&gt;centralWidget-&gt;setLayout(qhbl);
</code></pre>
]]></description><link>https://forum.qt.io/topic/56093/qt-emails-input-widget</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 06:44:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/56093.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Jul 2015 11:44:47 GMT</pubDate><ttl>60</ttl></channel></rss>