<?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 update or create new model of QCompleter?]]></title><description><![CDATA[<p dir="auto">I'm try code:</p>
<pre><code>completeT = new QCompleter( listString, this );
	completeT -&gt;setCaseSensitivity( Qt::CaseInsensitive );
	completeT -&gt;setCompletionMode( QCompleter::PopupCompletion );
	completeT -&gt;setFilterMode( Qt::MatchContains );
	ui-&gt;txt_lineEdit-&gt;setCompleter( completeT );
</code></pre>
<p dir="auto">and I update by code:</p>
<pre><code>completeT -&gt;setModel( new QStringListModel( listCompleteT, this) );
</code></pre>
<p dir="auto">and I have error:<img src="https://ddgobkiprc33d.cloudfront.net/24a2db1d-5b3f-4513-b761-ca443f3b67ae.png" alt="57c37b60-d518-4c98-9463-988fad83af10-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">How to update QStringList in my QCompleter?<br />
if new QCompleter() that increase memory and optimal?</p>
]]></description><link>https://forum.qt.io/topic/121587/how-to-update-or-create-new-model-of-qcompleter</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 05:17:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/121587.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Dec 2020 19:17:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to update or create new model of QCompleter? on Tue, 08 Dec 2020 19:26:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Update the content of the model you use for the completer. No need to recreate stuff again and again.</p>
]]></description><link>https://forum.qt.io/post/631479</link><guid isPermaLink="true">https://forum.qt.io/post/631479</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 08 Dec 2020 19:26:35 GMT</pubDate></item></channel></rss>