<?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 go from animated intro to main menu]]></title><description><![CDATA[<p dir="auto">hey i am new at Qt development, i am trying to create an instrument cluster gui that displays an animated intro (logo fade in) upon boot.</p>
<p dir="auto">i only created the animated intro and now i want to go to the main menu when the animated intro ends.</p>
<pre><code>MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui-&gt;setupUi(this);

    //Background
    ui-&gt;setupUi(this);
    QPixmap bkgnd(":/rec/Images/backgorund.png");
    bkgnd = bkgnd.scaled(this-&gt;size(), Qt::IgnoreAspectRatio);
    QPalette palette;
    palette.setBrush(QPalette::Window, bkgnd);
    this-&gt;setPalette(palette);

    //Logo
    QPixmap iti(":/rec/Images/logo.png");
    QLabel *label = new QLabel(this);
    label-&gt;setPixmap(iti);
    QHBoxLayout *layout = new QHBoxLayout(this);
    layout-&gt;addWidget(label);
    layout-&gt;setAlignment(Qt::AlignCenter);
    QWidget *centralWidget = new QWidget(this);
    centralWidget-&gt;setLayout(layout);
    setCentralWidget(centralWidget);

    //Fade in effect
    QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this);
    label-&gt;setGraphicsEffect(eff);
    QPropertyAnimation *a = new QPropertyAnimation(eff,"opacity");
    a-&gt;setDuration(4000);
    a-&gt;setStartValue(0);
    a-&gt;setEndValue(1);
    a-&gt;setEasingCurve(QEasingCurve::InBack);
    a-&gt;start(QPropertyAnimation::DeleteWhenStopped);
}
</code></pre>
]]></description><link>https://forum.qt.io/topic/145824/how-to-go-from-animated-intro-to-main-menu</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 10:31:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145824.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Jun 2023 15:56:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to go from animated intro to main menu on Fri, 16 Jun 2023 18:54:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/761714">How to go from animated intro to main menu</a>:</p>
<blockquote>
<p dir="auto">Did you delete that?</p>
</blockquote>
<p dir="auto">Yes, it was deleted by him.</p>
]]></description><link>https://forum.qt.io/post/761717</link><guid isPermaLink="true">https://forum.qt.io/post/761717</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 16 Jun 2023 18:54:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to go from animated intro to main menu on Fri, 16 Jun 2023 17:58:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/omardmf">@<bdi>omardmf</bdi></a><br />
I thought somebody posted just this question a couple of hours ago and I replied to it?  Did you delete that?</p>
]]></description><link>https://forum.qt.io/post/761714</link><guid isPermaLink="true">https://forum.qt.io/post/761714</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 16 Jun 2023 17:58:54 GMT</pubDate></item></channel></rss>