<?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 use the outline option in stylesheet?]]></title><description><![CDATA[<p dir="auto">I tried this:</p>
<pre><code>border-image: url(:/tv.png);
outline-color: rgb(0, 255, 255);
outline-style: solid;
</code></pre>
<p dir="auto">But nothing were drawn into the image. I tested on a QWidget.</p>
]]></description><link>https://forum.qt.io/topic/140077/how-to-use-the-outline-option-in-stylesheet</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 20:26:15 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140077.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Oct 2022 06:04:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use the outline option in stylesheet? on Sat, 15 Oct 2022 18:31:14 GMT]]></title><description><![CDATA[<p dir="auto">Ah. You initially said that „nothing were drawn into the image“….<br />
A <a href="https://doc.qt.io/qt-5/stylesheet-reference.html" target="_blank" rel="noopener noreferrer nofollow ugc">style sheet</a> is meant to design existing elements of a widget, not to create such elements. In your case, a QWidget doesn’t have a frame. So the outline property is ignored. A QFrame or a QPushButton has such elements and thus reacts to outline styling.</p>
]]></description><link>https://forum.qt.io/post/732801</link><guid isPermaLink="true">https://forum.qt.io/post/732801</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Sat, 15 Oct 2022 18:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to use the outline option in stylesheet? on Sat, 15 Oct 2022 18:18:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/axel-spoerl">@<bdi>Axel-Spoerl</bdi></a> missing frame, only the image is painted, the outline dont.</p>
]]></description><link>https://forum.qt.io/post/732800</link><guid isPermaLink="true">https://forum.qt.io/post/732800</guid><dc:creator><![CDATA[n34rt]]></dc:creator><pubDate>Sat, 15 Oct 2022 18:18:11 GMT</pubDate></item><item><title><![CDATA[Reply to How to use the outline option in stylesheet? on Sat, 15 Oct 2022 18:00:41 GMT]]></title><description><![CDATA[<p dir="auto">What exactly is the problem?<br />
The missing image or the missing frame around it?</p>
]]></description><link>https://forum.qt.io/post/732799</link><guid isPermaLink="true">https://forum.qt.io/post/732799</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Sat, 15 Oct 2022 18:00:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to use the outline option in stylesheet? on Sat, 15 Oct 2022 11:48:53 GMT]]></title><description><![CDATA[<p dir="auto">Outline is a weird one. Seems to be only used by buttons to indicate focus.</p>
]]></description><link>https://forum.qt.io/post/732783</link><guid isPermaLink="true">https://forum.qt.io/post/732783</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Sat, 15 Oct 2022 11:48:53 GMT</pubDate></item></channel></rss>