<?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[Gui Advice&#x2F;Opinion many check boxes]]></title><description><![CDATA[<p dir="auto">Hi<br />
As part of my application the user needs to be able to select from a set of up to 64 options.<br />
Any combination is allowed and I need a method of selecting/de-selecting all of the options. As a starting point I am showing (up to) 64 check boxes but by default these are 'ticked' which does not look particularly pleasing.</p>
<p dir="auto">Has anyone got any ideas on how best to implement this?</p>
<p dir="auto">Thanks</p>
<p dir="auto">G</p>
]]></description><link>https://forum.qt.io/topic/29900/gui-advice-opinion-many-check-boxes</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 01:10:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/29900.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Jul 2013 08:14:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gui Advice&#x2F;Opinion many check boxes on Thu, 25 Jul 2013 08:58:52 GMT]]></title><description><![CDATA[<p dir="auto">If the list is not fixed, or if you feel like it, you can implement your settings as a QListView/ QListWidget. Items in that view can be checked (you need to set QListWidgetItem::setChecked() for the checkbox to appear) and are easy to iterate through (since you have a list of items, it's quite easy to loop through it and select/ deselect them).</p>
<p dir="auto">Other option is to create a standard UI layout with QCheckBoxes. You can also keep them in a QList&lt;QCheckBox *&gt; for convenience (should make selection/ deselection easier), or use QWidget::findChildren&lt;QCheckBox *&gt;().</p>
]]></description><link>https://forum.qt.io/post/187755</link><guid isPermaLink="true">https://forum.qt.io/post/187755</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 25 Jul 2013 08:58:52 GMT</pubDate></item></channel></rss>