<?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[CheckBox stay checked after exit and restart]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm programming a GUI app. In my first screen/page, i have a tableview and in my second page, i have a checkbox.<br />
The problem is when i exit the program with the checkbox checked and i restart it, the tableview don't have the focus (gray selection) and the checkbox is still checked.<br />
Is the problem come from destructor ?</p>
<p dir="auto">Thx</p>
<p dir="auto">EDIT : checkbox problem solved but tableview still doesn't have the focus</p>
]]></description><link>https://forum.qt.io/topic/66987/checkbox-stay-checked-after-exit-and-restart</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 19:51:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/66987.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 May 2016 15:22:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CheckBox stay checked after exit and restart on Thu, 12 May 2016 15:41:08 GMT]]></title><description><![CDATA[<p dir="auto">That what i just tried but doesn't work.<br />
I have used QApplication::focusWidget() to get the widget focused. I don't know why but it is a combobox, even if i set the focus to the table view.</p>
<p dir="auto">EDIT : Pffff, i don't know why but the focus policy of the tableview is set to NoFocus ^^</p>
<p dir="auto">Thx</p>
]]></description><link>https://forum.qt.io/post/327027</link><guid isPermaLink="true">https://forum.qt.io/post/327027</guid><dc:creator><![CDATA[Zoptune]]></dc:creator><pubDate>Thu, 12 May 2016 15:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to CheckBox stay checked after exit and restart on Thu, 12 May 2016 15:32:15 GMT]]></title><description><![CDATA[<p dir="auto">hi<br />
just set focus to it in mainwindow constructor?<br />
ui-&gt;tableview-&gt;setFocus(); ?</p>
]]></description><link>https://forum.qt.io/post/327026</link><guid isPermaLink="true">https://forum.qt.io/post/327026</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Thu, 12 May 2016 15:32:15 GMT</pubDate></item></channel></rss>