<?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 clear selection of QListView item using QModelIndex?]]></title><description><![CDATA[<p dir="auto">How to clear selection of a QListView item with respect to a selected QModelIndex? QListView has an API which clears all selected items where as I want to clear selection at a particular QModelIndex.</p>
]]></description><link>https://forum.qt.io/topic/28044/how-to-clear-selection-of-qlistview-item-using-qmodelindex</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 16:04:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/28044.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Jun 2013 11:17:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to clear selection of QListView item using QModelIndex? on Fri, 07 Jun 2013 11:29:19 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot!! It worked!</p>
]]></description><link>https://forum.qt.io/post/181993</link><guid isPermaLink="true">https://forum.qt.io/post/181993</guid><dc:creator><![CDATA[Stoned Jesus]]></dc:creator><pubDate>Fri, 07 Jun 2013 11:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to clear selection of QListView item using QModelIndex? on Fri, 07 Jun 2013 11:23:11 GMT]]></title><description><![CDATA[<p dir="auto">do i understand you right, that you want to remain the existing selection but only want to exclude a given model index if it is selected?</p>
<p dir="auto">If so you can do this:<br />
@<br />
view-&gt;selectionModel()-&gt;select ( index, QItemSelectionModel::Deselect );<br />
@</p>
]]></description><link>https://forum.qt.io/post/181988</link><guid isPermaLink="true">https://forum.qt.io/post/181988</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Fri, 07 Jun 2013 11:23:11 GMT</pubDate></item></channel></rss>