<?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[General design]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have a problem of design between the designer and the result.<br />
Here is the designer:<br />
<a href="http://www.hostingpics.net/viewer.php?id=821087imagedesigner.png" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.hostingpics.net/viewer.php?id=821087imagedesigner.png</a></p>
<p dir="auto">and here is the result:<br />
<a href="http://www.hostingpics.net/viewer.php?id=586226imageresukt.png" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.hostingpics.net/viewer.php?id=586226imageresukt.png</a></p>
<p dir="auto">Why there is these difference in the theme?<br />
How can I keep the theme from the designer?</p>
]]></description><link>https://forum.qt.io/topic/76705/general-design</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 23:26:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/76705.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Feb 2017 12:02:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:30:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xav12358">@<bdi>Xav12358</bdi></a> said in <a href="/post/378924">General design</a>:</p>
<blockquote>
<p dir="auto">Ok I get it , only Windows and fusion are available.<br />
Noow it works.<br />
Thank you really much.</p>
</blockquote>
<p dir="auto">You are welcome !</p>
]]></description><link>https://forum.qt.io/post/378927</link><guid isPermaLink="true">https://forum.qt.io/post/378927</guid><dc:creator><![CDATA[mostefa]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:28:44 GMT]]></title><description><![CDATA[<p dir="auto">Ok I get it , only Windows and fusion are available.<br />
Noow it works.<br />
Thank you really much.</p>
]]></description><link>https://forum.qt.io/post/378924</link><guid isPermaLink="true">https://forum.qt.io/post/378924</guid><dc:creator><![CDATA[Xav12358]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 14:36:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xav12358">@<bdi>Xav12358</bdi></a> said in <a href="/post/378921">General design</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a><br />
I try to use that line to change the color and the theme but it is not working:</p>
<pre><code>    QApplication a(argc, argv);

    MainWindow w;
    w.show();

        a.setStyle("plastique");
</code></pre>
</blockquote>
<p dir="auto">Are you in qt4 or qt5?</p>
<p dir="auto">If qt5 you have to use QStyleFactory</p>
<pre><code>QApplication::setStyle(QStyleFactory::create("Plastique"));
</code></pre>
<p dir="auto">Have a look at this link from qt doc:</p>
<p dir="auto"><a href="http://doc.qt.io/qt-5/qstylefactory.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qstylefactory.html#details</a></p>
<p dir="auto">Depending or operating system styles are available to find which styles are available you can add this line :</p>
<pre><code>qDebug() &lt;&lt; QStyleFactory::keys();
</code></pre>
<p dir="auto">For example for my operating system i have these available styles:</p>
<p dir="auto"><code>("Windows", "Motif", "CDE", "Plastique", "GTK+", "Cleanlooks")</code></p>
]]></description><link>https://forum.qt.io/post/378923</link><guid isPermaLink="true">https://forum.qt.io/post/378923</guid><dc:creator><![CDATA[mostefa]]></dc:creator><pubDate>Tue, 28 Feb 2017 14:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:18:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a><br />
I try to use that line to change the color and the theme but it is not working:</p>
<pre><code>    QApplication a(argc, argv);

    MainWindow w;
    w.show();

        a.setStyle("plastique");
</code></pre>
]]></description><link>https://forum.qt.io/post/378921</link><guid isPermaLink="true">https://forum.qt.io/post/378921</guid><dc:creator><![CDATA[Xav12358]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:18:25 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:13:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xav12358">@<bdi>Xav12358</bdi></a></p>
<p dir="auto">How are you changing the color in qt designer?</p>
]]></description><link>https://forum.qt.io/post/378920</link><guid isPermaLink="true">https://forum.qt.io/post/378920</guid><dc:creator><![CDATA[mostefa]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:13:50 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:12:54 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the replay but my problem was about the color and the theme of the elements.</p>
]]></description><link>https://forum.qt.io/post/378919</link><guid isPermaLink="true">https://forum.qt.io/post/378919</guid><dc:creator><![CDATA[Xav12358]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:12:43 GMT]]></title><description><![CDATA[<ul>
<li>How can I keep the theme from the designer?</li>
</ul>
<p dir="auto">You cannot. The dark style used in<br />
Designer is not there as a selectable style when run outside.<br />
Its a custom fusion based style.<br />
You can re-create it with style sheets.</p>
]]></description><link>https://forum.qt.io/post/378918</link><guid isPermaLink="true">https://forum.qt.io/post/378918</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to General design on Tue, 28 Feb 2017 12:11:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xav12358">@<bdi>Xav12358</bdi></a></p>
<p dir="auto">I think that you have to play with stretch property</p>
<p dir="auto"><img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcREVY2oDCUXPzGyKw6Tabd2x8_yRLAcuhN1cmaKTHGD7z5X-0o65g" alt="alt text" class=" img-fluid img-markdown" /><br />
you can put</p>
<p dir="auto">4 for the first element<br />
1 for the second element</p>
<p dir="auto">for example</p>
<p dir="auto">To understand what is stretch factor have a look at this link from qt doc:</p>
<p dir="auto"><a href="http://doc.qt.io/qt-4.8/layout.html#stretch-factors" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-4.8/layout.html#stretch-factors</a></p>
<p dir="auto">Hope this can help !</p>
]]></description><link>https://forum.qt.io/post/378917</link><guid isPermaLink="true">https://forum.qt.io/post/378917</guid><dc:creator><![CDATA[mostefa]]></dc:creator><pubDate>Tue, 28 Feb 2017 12:11:00 GMT</pubDate></item></channel></rss>