<?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[QTabWidget Fade-in tab changes?]]></title><description><![CDATA[<p dir="auto">Is it possible to fade-in the newly selected tab page?</p>
]]></description><link>https://forum.qt.io/topic/98775/qtabwidget-fade-in-tab-changes</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 16:23:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/98775.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jan 2019 04:40:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QTabWidget Fade-in tab changes? on Wed, 23 Jan 2019 08:09:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/taytoo">@<bdi>Taytoo</bdi></a><br />
assuming you are using QtWidgets one possibility could be:</p>
<ol>
<li>set a <a href="http://doc.qt.io/qt-5/qgraphicsopacityeffect.html" target="_blank" rel="noopener noreferrer nofollow ugc">QGraphicsOpacityEffect</a> on tab-content widget</li>
<li>bind a <a href="http://doc.qt.io/qt-5/qpropertyanimation.html" target="_blank" rel="noopener noreferrer nofollow ugc">QPropertyAnimation</a> and animate the <code>opacity</code> property of the opacity graphics effect</li>
<li>overrride showEvent() and start the property animation from 0.0 to 1.0</li>
</ol>
<p dir="auto">For QML you can use the <a href="https://doc.qt.io/qt-5/qml-qtquick-controls2-stackview.html" target="_blank" rel="noopener noreferrer nofollow ugc">StackView</a> element which provides transition properties.</p>
]]></description><link>https://forum.qt.io/post/506586</link><guid isPermaLink="true">https://forum.qt.io/post/506586</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Wed, 23 Jan 2019 08:09:52 GMT</pubDate></item></channel></rss>