.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/01_introductory/viz_basic_qt.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_01_introductory_viz_basic_qt.py: ================== Using FURY with Qt ================== This example demonstrates how to use FURY with a Qt application to create a simple GUI. It integrates FURY's rendering capabilities with Qt's event handling and widget system. .. GENERATED FROM PYTHON SOURCE LINES 9-15 .. code-block:: Python import numpy as np from fury.window import show from fury.actor import box .. GENERATED FROM PYTHON SOURCE LINES 16-17 Let's create sphere actor to add three spheres to display. .. GENERATED FROM PYTHON SOURCE LINES 17-22 .. code-block:: Python centers = np.random.rand(5, 3) * 10 box_actor = box(centers=centers) show(actors=[box_actor], window_type="qt") .. _sphx_glr_download_auto_examples_01_introductory_viz_basic_qt.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: viz_basic_qt.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: viz_basic_qt.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: viz_basic_qt.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_