<?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[QWizard stylesheet]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I am developing a QWizard but I have problems with the stylesheet.</p>
<p dir="auto">I have this right now:</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/868f4283-99ea-4546-88af-9edb03b2dc00.png" alt="4b5cb25b-46a6-4403-9ada-abba18ae8c41-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have a QWizardPage that it is a QWidget, and it has a correct background color but the window is still white and I don't know how to change it.</p>
<p dir="auto">Here is my launching code:</p>
<pre><code>void MainWindow::on_actionOpen_wizard_triggered()
{
    WizardExample *wizard = new WizardExample();
    wizard-&gt;setAttribute(Qt::WA_DeleteOnClose);
    wizard-&gt;setStyleSheet("QWizard QWidget {background: #1A1A1D;}");
    wizard-&gt;show();
}
</code></pre>
<p dir="auto">This "QWizard QWidget" is because if I don't put "QWidget" there, the result is:</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/ed4f4103-0031-4014-8957-baa9d3f5bf1b.png" alt="08e9b8bc-303a-45fa-b4d1-367f5eb19639-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I need to give stylesheet to all widgets in the wizard.</p>
<p dir="auto">How can I fix it?? Which is the correct stylesheet for it?</p>
<p dir="auto">Thank you very much!</p>
]]></description><link>https://forum.qt.io/topic/142330/qwizard-stylesheet</link><generator>RSS for Node</generator><lastBuildDate>Sun, 21 Jun 2026 00:43:48 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/142330.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jan 2023 08:14:32 GMT</pubDate><ttl>60</ttl></channel></rss>