<div dir="ltr"><a href="https://doc.qt.io/qt-5/stylesheet-reference.html#:~:text=widget%2Danimation%2Dduration*">https://doc.qt.io/qt-5/stylesheet-reference.html#:~:text=widget%2Danimation%2Dduration*</a><br><div><br></div><div>Wouldn't this allow animated fades?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 30, 2022 at 4:32 PM Sven Brauch <<a href="mailto:mail@svenbrauch.de">mail@svenbrauch.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On 5/30/22 20:37, samuel ammonius wrote:<br>
> I've worked with regular CSS and I'm sure that stylesheets offer just as <br>
> many customization options as things like QtCurve or QStylePlugins. The <br>
> reason that it may not seem this way is because Qt didn't document <br>
> regularĀ CSS syntax in the documentation for stylesheets.<br>
<br>
No, the reason is that Qt's CSS has absolutely nothing to do with the <br>
regular CSS known from browsers. It's a proxy style which tweaks how a <br>
base style (e.g. Fusion or Breeze) draws elements on the screen, by e.g. <br>
modifying the palette and then forwarding the draw call to the base <br>
style. It implements maybe 1% of the CSS stuff a modern browser can do, <br>
and that's a favourable estimate. And not even all of that will work as <br>
expected in all cases. For details, see [1].<br>
<br>
That this proxy style's behaviour can be configured using a CSS-like <br>
syntax is coincidental, or, well, intentionally made that way for ease <br>
of use. But: this is not the CSS you know or expect.<br>
<br>
> I can't verify that stylesheets can do everything that a style plugin <br>
> can do<br>
<br>
They can't. Regular CSS 3 in Firefox is probably pretty close, <br>
practically speaking, but Qt's CSS, not so much.<br>
<br>
> but I know for sure that Breeze can be made using a qstylesheet <br>
<br>
Where did you get this information? This is certainly not the case. Just <br>
try to make e.g. the animated fades in Breeze using Qt's CSS and Fusion <br>
as the base style and you will immediately discover that it's not possible.<br>
<br>
Greetings,<br>
Sven<br>
<br>
_____________<br>
[1] <br>
<a href="https://code.woboq.org/qt5/qtbase/src/widgets/styles/qstylesheetstyle.cpp.html" rel="noreferrer" target="_blank">https://code.woboq.org/qt5/qtbase/src/widgets/styles/qstylesheetstyle.cpp.html</a><br>
</blockquote></div>