<?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[If I want to switch between screens, do I also need to set &#96;enabled&#96; or is &#96;visible&#96; enough]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a very basic question. I have a <code>main.qml</code> looking like this:</p>
<pre><code>ApplicationWindow {
  visible: true
  width: 1024
  height: 600
  Screen1 {
    id: screen1
    visible: true
  }
  Screen2 {
    id: screen2
    visible: false
  }
  Screen3 {
    id: screen3
    visible: false
  }
 ....
</code></pre>
<p dir="auto">The <code>Screen</code> objects fill the screen and represent what is visible on a touch screen in a given state of the application. There are buttons, which will switch between those screen. Is it enough, if these buttons only change the <code>visible</code> property of the Screens, or do I also need to set <code>enable</code> of the current screen to false when switching to a new screeen (in order to prevent the wrong screen to catch touch events)?</p>
]]></description><link>https://forum.qt.io/topic/92496/if-i-want-to-switch-between-screens-do-i-also-need-to-set-enabled-or-is-visible-enough</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 18:56:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/92496.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Jul 2018 07:40:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to If I want to switch between screens, do I also need to set &#96;enabled&#96; or is &#96;visible&#96; enough on Wed, 11 Jul 2018 09:55:30 GMT]]></title><description><![CDATA[<p dir="auto">From what I've experienced, visible is enough. It will keep your screen state before you switch to an other screen but I never experienced any problem with touchscreen capture in the background.</p>
<p dir="auto"><strong>Edit</strong> :<br />
After a little bit of documentation I found this  : <a href="http://doc.qt.io/qt-5/qml-qtquick-item.html#visible-prop" target="_blank" rel="noopener noreferrer nofollow ugc">visible</a><br />
<em>"If this property is set to false, the item will no longer receive mouse events, but will continue to receive key events and will retain the keyboard focus if it has been set. (In contrast, setting the enabled property to false stops both mouse and keyboard events, and also removes focus from the item.)"</em></p>
]]></description><link>https://forum.qt.io/post/468822</link><guid isPermaLink="true">https://forum.qt.io/post/468822</guid><dc:creator><![CDATA[DavidM29]]></dc:creator><pubDate>Wed, 11 Jul 2018 09:55:30 GMT</pubDate></item></channel></rss>