aboutsummaryrefslogtreecommitdiffstats
path: root/examples/charts/pointconfiguration/pointconfiguration.py
diff options
context:
space:
mode:
authorKeith Kyzivat <keith.kyzivat@qt.io>2022-11-10 14:27:53 -0500
committerKeith Kyzivat <keith.kyzivat@qt.io>2023-01-19 15:45:48 -0500
commit8111875a7fe11b856bc2c6960d7b196607bc1f0c (patch)
tree48bfec417d93a8cdc114bc83638d32a966770a9b /examples/charts/pointconfiguration/pointconfiguration.py
parent50d3f6cd3ab69d9f5dadb8cc308b3aeaf8c27938 (diff)
PySide6-examples: Charts selected point configuration example
Add an example that shows how to customize individual points on a chart, such as changing the color or providing a a custom label. Task-number: PYSIDE-841 Change-Id: I09b48dd4e77f03355d1bb1207d7666a9fb3801f0 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'examples/charts/pointconfiguration/pointconfiguration.py')
-rw-r--r--examples/charts/pointconfiguration/pointconfiguration.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/charts/pointconfiguration/pointconfiguration.py b/examples/charts/pointconfiguration/pointconfiguration.py
new file mode 100644
index 000000000..d8c90d2df
--- /dev/null
+++ b/examples/charts/pointconfiguration/pointconfiguration.py
@@ -0,0 +1,17 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+"""PySide6 port of the Light Markers Points Selection example from Qt v6.2"""
+import sys
+from PySide6.QtWidgets import QApplication
+
+from chartwindow import ChartWindow
+
+
+if __name__ == "__main__":
+
+ a = QApplication(sys.argv)
+ main_window = ChartWindow()
+ main_window.resize(640, 480)
+ main_window.show()
+ sys.exit(a.exec())