aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-12-11 13:02:23 +0100
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-12-12 13:47:55 +0100
commitf6069b9330fc01b68296ef4dffd474ed98784ec6 (patch)
treed3f504d8070430e9f7dfe68e614cc11729420950 /examples/widgets/graphicsview
parent31a9db93d3c355d8e6be4d31eacc02b93d41ffd3 (diff)
Documentation/Examples: Add missing docs
Some examples did not have any documentation. This patch adds the respective documentation. Pick-to: 6.8 Change-Id: I9698752b654c2df29fd3572f6bc66a9df56f9903 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/graphicsview')
-rw-r--r--examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.rst12
-rw-r--r--examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.webpbin0 -> 4234 bytes
-rw-r--r--examples/widgets/graphicsview/collidingmice/doc/collidingmice.rst15
-rw-r--r--examples/widgets/graphicsview/collidingmice/doc/collidingmice.webpbin0 -> 10604 bytes
-rw-r--r--examples/widgets/graphicsview/diagramscene/doc/diagramscene.rst11
-rw-r--r--examples/widgets/graphicsview/diagramscene/doc/diagramscene.webpbin0 -> 15208 bytes
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.pngbin0 -> 26994 bytes
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.rst12
-rw-r--r--examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.pngbin0 -> 20101 bytes
-rw-r--r--examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.rst15
10 files changed, 65 insertions, 0 deletions
diff --git a/examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.rst b/examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.rst
new file mode 100644
index 000000000..8eef329c9
--- /dev/null
+++ b/examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.rst
@@ -0,0 +1,12 @@
+Anchor Layout Example
+=====================
+
+This application demonstrates the use of `QGraphicsAnchorLayout` in a PySide6 Widget application.
+It creates a graphical scene with several `QPushButton` widgets arranged using anchor constraints,
+allowing for dynamic and flexible layout management within a `QGraphicsView`. It demonstrates
+the analogous Qt example
+`Anchor Layout Example <https://doc.qt.io/qt-6.2/qtwidgets-graphicsview-anchorlayout-example.html>`_
+
+.. image:: anchorlayout.webp
+ :width: 400
+ :alt: anchorlayout screenshot
diff --git a/examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.webp b/examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.webp
new file mode 100644
index 000000000..cfc89c667
--- /dev/null
+++ b/examples/widgets/graphicsview/anchorlayout/doc/anchorlayout.webp
Binary files differ
diff --git a/examples/widgets/graphicsview/collidingmice/doc/collidingmice.rst b/examples/widgets/graphicsview/collidingmice/doc/collidingmice.rst
new file mode 100644
index 000000000..449015926
--- /dev/null
+++ b/examples/widgets/graphicsview/collidingmice/doc/collidingmice.rst
@@ -0,0 +1,15 @@
+Colliding Mice Example
+======================
+
+This application, is a graphical simulation built using PySide6. It creates a
+scene with multiple animated mouse objects that move around and interact with
+each other within a `QGraphicsView`. The mice change direction to avoid
+collisions and exhibit random movements, demonstrating the use of
+`QGraphicsItem`, `QGraphicsScene`, and `QGraphicsView` for creating dynamic and
+interactive graphics in a PySide6 application. This example demonstrates the
+analogous Qt example `Colliding Mice Example
+<https://doc.qt.io/qt-6/qtwidgets-graphicsview-collidingmice-example.html>`_.
+
+.. image:: collidingmice.webp
+ :width: 400
+ :alt: collidingmice screenshot
diff --git a/examples/widgets/graphicsview/collidingmice/doc/collidingmice.webp b/examples/widgets/graphicsview/collidingmice/doc/collidingmice.webp
new file mode 100644
index 000000000..aafd2b15f
--- /dev/null
+++ b/examples/widgets/graphicsview/collidingmice/doc/collidingmice.webp
Binary files differ
diff --git a/examples/widgets/graphicsview/diagramscene/doc/diagramscene.rst b/examples/widgets/graphicsview/diagramscene/doc/diagramscene.rst
new file mode 100644
index 000000000..828e14a39
--- /dev/null
+++ b/examples/widgets/graphicsview/diagramscene/doc/diagramscene.rst
@@ -0,0 +1,11 @@
+Diagram Scene Example
+=====================
+
+This example demonstrates how to create an interactive diagram editor using
+PySide6, featuring various diagram shapes, connectors, and customizable
+properties. It demonstrates the analogous Qt example `Diagram Scene Example
+<https://doc.qt.io/qt-6/qtwidgets-graphicsview-diagramscene-example.html>`_.
+
+.. image:: diagramscene.webp
+ :width: 400
+ :alt: diagramscene screenshot
diff --git a/examples/widgets/graphicsview/diagramscene/doc/diagramscene.webp b/examples/widgets/graphicsview/diagramscene/doc/diagramscene.webp
new file mode 100644
index 000000000..e94a8393c
--- /dev/null
+++ b/examples/widgets/graphicsview/diagramscene/doc/diagramscene.webp
Binary files differ
diff --git a/examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.png b/examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.png
new file mode 100644
index 000000000..b8eff6ff8
--- /dev/null
+++ b/examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.png
Binary files differ
diff --git a/examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.rst b/examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.rst
new file mode 100644
index 000000000..f2e6b7e71
--- /dev/null
+++ b/examples/widgets/graphicsview/dragdroprobot/doc/dragdroprobot.rst
@@ -0,0 +1,12 @@
+Drag and Drop Robot Example
+===========================
+
+This example demonstrates a PySide6 application where users can drag and drop
+color items onto a robot graphic, showcasing interactive drag-and-drop
+functionality within a `QGraphicsView`. It demonstrates the analogous Qt example
+`Drag and Drop Robot Example
+<https://doc.qt.io/qt-6/qtwidgets-graphicsview-dragdroprobot-example.html>`_.
+
+.. image:: dragdroprobot.png
+ :width: 400
+ :alt: dragdroprobot screenshot
diff --git a/examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.png b/examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.png
new file mode 100644
index 000000000..840f74fe1
--- /dev/null
+++ b/examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.png
Binary files differ
diff --git a/examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.rst b/examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.rst
new file mode 100644
index 000000000..91afe0bac
--- /dev/null
+++ b/examples/widgets/graphicsview/elasticnodes/doc/elasticnodes.rst
@@ -0,0 +1,15 @@
+Elastic Nodes Example
+=====================
+
+This example demonstrates a PySide6 application that creates a dynamic and
+interactive graphical scene with nodes connected by elastic edges. The nodes
+and edges respond to user interactions and physics-based movements, showcasing
+the use of `QGraphicsItem`, `QGraphicsScene`, and `QGraphicsView` for creating
+complex animations and interactions.
+
+It demonstrates the analogous Qt example `Elastic Nodes Example
+<https://doc.qt.io/qt-6/qtwidgets-graphicsview-elasticnodes-example.html>`_.
+
+.. image:: elasticnodes.png
+ :width: 400
+ :alt: elasticnodes screenshot