Skip to content

Commit 6756809

Browse files
committed
graphics effects
1 parent 2e20b57 commit 6756809

3 files changed

Lines changed: 16 additions & 9 deletions

File tree

_images/graphics_effects.png

25.4 KB
Loading

_sources/styling.rst.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,9 @@ Graphics Effects
154154
Edifice styles support the four stock `QGraphicsEffect <https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QGraphicsEffect.html>`_
155155
effects for any :ref:`Base Element <Base Elements>`.
156156

157-
.. note::
158-
159-
Due to limitations in the Qt API, only one graphic effect can be applied to
160-
a :ref:`Base Element <Base Elements>` at a time.
157+
.. figure:: image/graphics_effects.png
158+
:alt: Graphics Effects
159+
:align: center
161160

162161
Each effect style has a different set of parameters.
163162

@@ -188,6 +187,11 @@ Each effect style has a different set of parameters.
188187

189188
See `QGraphicsOpacityEffect <https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QGraphicsOpacityEffect.html>`_.
190189

190+
.. note::
191+
192+
Due to limitations in the Qt API, only one graphic effect can be applied to
193+
a :ref:`Base Element <Base Elements>` at a time.
194+
191195

192196

193197
Size Policy

styling.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,9 @@ <h2>Color<a class="headerlink" href="#color" title="Link to this heading">#</a><
546546
<h2>Graphics Effects<a class="headerlink" href="#graphics-effects" title="Link to this heading">#</a></h2>
547547
<p>Edifice styles support the four stock <a class="reference external" href="https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QGraphicsEffect.html">QGraphicsEffect</a>
548548
effects for any <a class="reference internal" href="base_components.html#module-edifice.base_components"><span class="std std-ref">Base Element</span></a>.</p>
549-
<div class="admonition note">
550-
<p class="admonition-title">Note</p>
551-
<p>Due to limitations in the Qt API, only one graphic effect can be applied to
552-
a <a class="reference internal" href="base_components.html#module-edifice.base_components"><span class="std std-ref">Base Element</span></a> at a time.</p>
553-
</div>
549+
<figure class="align-center">
550+
<img alt="Graphics Effects" src="_images/graphics_effects.png" />
551+
</figure>
554552
<p>Each effect style has a different set of parameters.</p>
555553
<ul>
556554
<li><p><strong>blur</strong>: <code class="code docutils literal notranslate"><span class="pre">float</span></code> The blur radius in pixels.</p>
@@ -583,6 +581,11 @@ <h2>Graphics Effects<a class="headerlink" href="#graphics-effects" title="Link t
583581
<p>See <a class="reference external" href="https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QGraphicsOpacityEffect.html">QGraphicsOpacityEffect</a>.</p>
584582
</li>
585583
</ul>
584+
<div class="admonition note">
585+
<p class="admonition-title">Note</p>
586+
<p>Due to limitations in the Qt API, only one graphic effect can be applied to
587+
a <a class="reference internal" href="base_components.html#module-edifice.base_components"><span class="std std-ref">Base Element</span></a> at a time.</p>
588+
</div>
586589
</section>
587590
<section id="size-policy">
588591
<h2>Size Policy<a class="headerlink" href="#size-policy" title="Link to this heading">#</a></h2>

0 commit comments

Comments
 (0)