<?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[image&#x27;s parent is being passed to child widget..]]></title><description><![CDATA[<p dir="auto">Hello!.. image is self-explanable..</p>
<p dir="auto">What could it be?</p>
<p dir="auto">Thanks</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/e1ae825d-3467-4dcd-980a-8de6a94fbef3.png" alt="00.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/149934/image-s-parent-is-being-passed-to-child-widget</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 15:53:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/149934.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Sep 2023 22:46:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to image&#x27;s parent is being passed to child widget.. on Sun, 24 Sep 2023 05:27:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/1xu7">@<bdi>1XU7</bdi></a> CSS stands for <strong>Cascading</strong> Style Sheets, meaning when you set a property on an instance it cascades down the children tree.</p>
<p dir="auto">Your solution works, but is kinda intrusive. You shouldn't change buttons style to set a QFrame style. A better solution would be to give the frame object a name using <code>setObjectName()</code> or via property editor in designer and then only set the style for that:</p>
<pre><code class="language-css">#MyFrame {
   border-image: url(:/imgs/resources/imgBanner.png);
}
</code></pre>
]]></description><link>https://forum.qt.io/post/773603</link><guid isPermaLink="true">https://forum.qt.io/post/773603</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Sun, 24 Sep 2023 05:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to image&#x27;s parent is being passed to child widget.. on Sun, 24 Sep 2023 12:11:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-kawa">@<bdi>Chris-Kawa</bdi></a> thanks, that is even more elegant!!</p>
<p dir="auto">Just was wondering my solution is bad, because, what happens if i had  more than one QFrame?.. or more than one button?.. the style will be changed for all of them...<br />
but identifying as you said then that problem will gone..</p>
]]></description><link>https://forum.qt.io/post/773617</link><guid isPermaLink="true">https://forum.qt.io/post/773617</guid><dc:creator><![CDATA[1XU7]]></dc:creator><pubDate>Sun, 24 Sep 2023 12:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to image&#x27;s parent is being passed to child widget.. on Sun, 24 Sep 2023 05:27:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/1xu7">@<bdi>1XU7</bdi></a> CSS stands for <strong>Cascading</strong> Style Sheets, meaning when you set a property on an instance it cascades down the children tree.</p>
<p dir="auto">Your solution works, but is kinda intrusive. You shouldn't change buttons style to set a QFrame style. A better solution would be to give the frame object a name using <code>setObjectName()</code> or via property editor in designer and then only set the style for that:</p>
<pre><code class="language-css">#MyFrame {
   border-image: url(:/imgs/resources/imgBanner.png);
}
</code></pre>
]]></description><link>https://forum.qt.io/post/773603</link><guid isPermaLink="true">https://forum.qt.io/post/773603</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Sun, 24 Sep 2023 05:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to image&#x27;s parent is being passed to child widget.. on Sat, 23 Sep 2023 23:31:22 GMT]]></title><description><![CDATA[<p dir="auto">Auto-answering...  i found the correct way, i post here the solution for people who need to fix this as me...</p>
<p dir="auto">just needed to set stylesheet in QFrame parent only.. for all childs too..</p>
<p dir="auto">In QFrame:</p>
<pre><code>QFrame {
    border-image: url(:/imgs/resources/imgBanner.png);
}

QPushButton {
    background-color: rgb(85, 255, 255);	
    color: rgb(0, 0, 0);
}
</code></pre>
<p dir="auto">thanks  anyway!</p>
]]></description><link>https://forum.qt.io/post/773581</link><guid isPermaLink="true">https://forum.qt.io/post/773581</guid><dc:creator><![CDATA[1XU7]]></dc:creator><pubDate>Sat, 23 Sep 2023 23:31:22 GMT</pubDate></item></channel></rss>