<?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 unselect all widgets from the window when you click somewhere in it?]]></title><description><![CDATA[<p dir="auto">So for example i have a Slider on a mainwindow.. But everytime i debug the app, Slider is selected ( "Screenshot":<a href="http://i51.tinypic.com/2lkw4f6.jpg" target="_blank" rel="noopener noreferrer nofollow ugc">http://i51.tinypic.com/2lkw4f6.jpg</a> ) The red thing around the slider...</p>
<p dir="auto">How can when i click on an empty space at that mainwindow every widget be unselected... ( For now i only have a slider but i would like to know how to unselect all )....</p>
]]></description><link>https://forum.qt.io/topic/6449/how-to-unselect-all-widgets-from-the-window-when-you-click-somewhere-in-it</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 08:45:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/6449.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Jun 2011 09:05:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 10:10:45 GMT]]></title><description><![CDATA[<p dir="auto">NoFocus Fancy QSlider Stylesheet :D<br />
Seems good to me !</p>
]]></description><link>https://forum.qt.io/post/91179</link><guid isPermaLink="true">https://forum.qt.io/post/91179</guid><dc:creator><![CDATA[Leon]]></dc:creator><pubDate>Tue, 07 Jun 2011 10:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 09:49:10 GMT]]></title><description><![CDATA[<p dir="auto">I think you are looking for StyleSheets. Have a look on "this":<a href="http://thesmithfam.org/blog/2010/03/10/fancy-qslider-stylesheet/" target="_blank" rel="noopener noreferrer nofollow ugc">http://thesmithfam.org/blog/2010/03/10/fancy-qslider-stylesheet/</a> and "this":<a href="http://doc.qt.nokia.com/4.6/stylesheet-examples.html#customizing-qslider" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.6/stylesheet-examples.html#customizing-qslider</a>.</p>
]]></description><link>https://forum.qt.io/post/91174</link><guid isPermaLink="true">https://forum.qt.io/post/91174</guid><dc:creator><![CDATA[HuXiKa]]></dc:creator><pubDate>Tue, 07 Jun 2011 09:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 09:43:45 GMT]]></title><description><![CDATA[<p dir="auto">Yes it quite ugly so i changed it to NoFocus...<br />
Thanks Andre :)</p>
]]></description><link>https://forum.qt.io/post/91175</link><guid isPermaLink="true">https://forum.qt.io/post/91175</guid><dc:creator><![CDATA[Leon]]></dc:creator><pubDate>Tue, 07 Jun 2011 09:43:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 09:26:11 GMT]]></title><description><![CDATA[<p dir="auto">Ah, you mean you don't like the visual <em>representation</em> of the focus? I can imagine you don't, the screenshot with just your slider looks quite ugly. But I have no idea what styles or style sheets you use to create that; it certainly isn't anything standard distributed by Qt.</p>
]]></description><link>https://forum.qt.io/post/91171</link><guid isPermaLink="true">https://forum.qt.io/post/91171</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Tue, 07 Jun 2011 09:26:11 GMT</pubDate></item><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 09:15:53 GMT]]></title><description><![CDATA[<p dir="auto">Yes focus, right i couldn't explain it..<br />
Desktop Drapes has also a slider ( "Screenshot ":<a href="http://oi54.tinypic.com/vzxb1j.jpg" target="_blank" rel="noopener noreferrer nofollow ugc">http://oi54.tinypic.com/vzxb1j.jpg</a>)<br />
Do u know why the focus thing is different with "this":<a href="http://i51.tinypic.com/2lkw4f6.jpg" target="_blank" rel="noopener noreferrer nofollow ugc">http://i51.tinypic.com/2lkw4f6.jpg</a> one?</p>
]]></description><link>https://forum.qt.io/post/91170</link><guid isPermaLink="true">https://forum.qt.io/post/91170</guid><dc:creator><![CDATA[Leon]]></dc:creator><pubDate>Tue, 07 Jun 2011 09:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 09:10:34 GMT]]></title><description><![CDATA[<p dir="auto">Can't you deal with it with QWidget::setFocus() ?</p>
]]></description><link>https://forum.qt.io/post/91169</link><guid isPermaLink="true">https://forum.qt.io/post/91169</guid><dc:creator><![CDATA[evergreen]]></dc:creator><pubDate>Tue, 07 Jun 2011 09:10:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to unselect all widgets from the window when you click somewhere in it? on Tue, 07 Jun 2011 09:09:04 GMT]]></title><description><![CDATA[<p dir="auto">The slider is not selected, it has focus. There is always a widget on your form that has focus, to make key navigation possible. If you put another widget on your form, you'll see that you can make <em>that</em> widget get the focus instead.</p>
]]></description><link>https://forum.qt.io/post/91168</link><guid isPermaLink="true">https://forum.qt.io/post/91168</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Tue, 07 Jun 2011 09:09:04 GMT</pubDate></item></channel></rss>