<?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[facilitating multiple selections from a QTableView]]></title><description><![CDATA[<p dir="auto">Hi all -</p>
<p dir="auto">The app I'm working on has a QTableView. Each row represents a remote device that the app can "see."</p>
<p dir="auto">Users have asked for the ability to do "mass" (their word) operations, like firmware updates. I'm sure that they'll want to select some devices in the view, but exclude others, so I'm looking at ways to make this easier. They can do the click, shift-click and ctrl-click but I'm thinking that something like checkboxes would be nicer.</p>
<p dir="auto">I've done some searching on using checkboxes with QTableView, and all the results I've found are surprisingly old. So, I'm curious as to what people think about 1) whether this is a good way to go, 2) a good method of implementation.</p>
<p dir="auto">These selections will probably be used with QtConcurrent (but that's for another day).</p>
<p dir="auto">Thanks...</p>
]]></description><link>https://forum.qt.io/topic/114285/facilitating-multiple-selections-from-a-qtableview</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 13:10:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114285.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Apr 2020 23:42:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to facilitating multiple selections from a QTableView on Fri, 01 May 2020 18:18:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> suggestion is good. You have your table on the left and then on the right you can have a list. Your users can then move stuff from left to right an the operations you want will be applied to the list on the right.</p>
]]></description><link>https://forum.qt.io/post/592028</link><guid isPermaLink="true">https://forum.qt.io/post/592028</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 01 May 2020 18:18:30 GMT</pubDate></item><item><title><![CDATA[Reply to facilitating multiple selections from a QTableView on Fri, 01 May 2020 13:15:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> yes, I display several columns, but only an entire row is to be selected.</p>
<p dir="auto">You might be right that using the click selection is adequate. I'm just exploring alternatives.</p>
<p dir="auto">I don't really have an answer for how many rows the view will display, but it's feasible that for some larger customers, it could be in the hundreds. I'll take a closer look at Qt's options for search-filtering.</p>
<p dir="auto">Thanks...</p>
]]></description><link>https://forum.qt.io/post/591987</link><guid isPermaLink="true">https://forum.qt.io/post/591987</guid><dc:creator><![CDATA[mzimmers]]></dc:creator><pubDate>Fri, 01 May 2020 13:15:18 GMT</pubDate></item><item><title><![CDATA[Reply to facilitating multiple selections from a QTableView on Fri, 01 May 2020 07:09:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mzimmers">@<bdi>mzimmers</bdi></a><br />
Since you're using <code>QTableView</code>, does each row have more than the one column of the device name?</p>
<p dir="auto">Assuming so, I presume they only want to select complete rows, not individual cells?</p>
<p dir="auto">So you could either do it by making, say, just the device name items checkable to represent the whole row, or by having an extra first column of checkboxes.</p>
<p dir="auto">Would this be any easier than the standard click-selecting options?  I don't really see why, but maybe it would be.</p>
<p dir="auto">Trying to make "life easier" sounds like a recipe for user-whinging ;-)</p>
<p dir="auto">If this is an issue, it sounds like you have a <em>lot</em> of rows for the user to select from for a mass operation?  Say hundreds.  In that case, would users benefit from the ability to do selection by "search-filtering"?  Like an external text edit, type in part of a device name or other column/criteria and click key to cause all matching rows to be <em>added</em> (or removed) to those currently selected, and keep doing that.  I have used app which allowed that when selecting from a list of hundreds/thousands of virtual devices attached to a Windows box to kill them, it was quite useful.</p>
]]></description><link>https://forum.qt.io/post/591940</link><guid isPermaLink="true">https://forum.qt.io/post/591940</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 01 May 2020 07:09:45 GMT</pubDate></item><item><title><![CDATA[Reply to facilitating multiple selections from a QTableView on Fri, 01 May 2020 04:34:17 GMT]]></title><description><![CDATA[<p dir="auto">Not quite the same but I had to implement selection for QML TableView working with my QAbstractTableModel w/ QSortFilterProxyModel(s) on top instanced by TableView.</p>
<p dir="auto">I'm not sure how widgets land is but I'd (did) start looking at: <a href="https://doc.qt.io/qt-5/model-view-programming.html#handling-selections-of-items" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/model-view-programming.html#handling-selections-of-items</a></p>
]]></description><link>https://forum.qt.io/post/591936</link><guid isPermaLink="true">https://forum.qt.io/post/591936</guid><dc:creator><![CDATA[6thC]]></dc:creator><pubDate>Fri, 01 May 2020 04:34:17 GMT</pubDate></item></channel></rss>