aboutsummaryrefslogtreecommitdiffstats
path: root/examples/charts
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-11-17 07:40:22 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-11-17 12:14:20 +0100
commit9700196c0a9618d16263e8a2cc5210a78ebec2dc (patch)
tree463ea48f1d573924b489057d254c0e0fc5a84797 /examples/charts
parent012973cc30626393bf7226cc44c27252419af316 (diff)
Fix the QtCharts/callout example
- Set a black pen for the callouts to be visible when using a dark theme - Fix misspelt method name Pick-to: 6.10 6.8 Fixes: PYSIDE-3239 Change-Id: I9b9941b6f0377250ce23c30ee932ddd2974624e7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples/charts')
-rw-r--r--examples/charts/callout/callout.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/charts/callout/callout.py b/examples/charts/callout/callout.py
index d8ba8e6e8..c61e955c3 100644
--- a/examples/charts/callout/callout.py
+++ b/examples/charts/callout/callout.py
@@ -82,6 +82,7 @@ class Callout(QGraphicsItem):
path.lineTo(point2)
path = path.simplified()
+ painter.setPen(QColor(0, 0, 0))
painter.setBrush(QColor(255, 255, 255))
painter.drawPath(path)
painter.drawText(self._textRect, self._text)
@@ -183,7 +184,7 @@ class View(QGraphicsView):
self._chart.size().width() / 2 + 50,
self._chart.size().height() - 20)
for callout in self._callouts:
- callout.updateGeometry()
+ callout.update_geometry()
QGraphicsView.resizeEvent(self, event)
def mouseMoveEvent(self, event):