1 parent 28f2dd2 commit 6fb9b73Copy full SHA for 6fb9b73
2 files changed
examples/Gallery for siui/start.py
@@ -38,6 +38,7 @@ def show_version_message(window):
38
39
if __name__ == "__main__":
40
app = QApplication(sys.argv)
41
+ app.setStyle("Fusion")
42
43
window = MySiliconApp()
44
window.show()
siui/components/chart.py
@@ -159,7 +159,7 @@ def event(self, event):
159
160
def _isMousePosValid(self, pos: QPoint) -> bool:
161
rect = self._getChartRect()
162
- return rect.contains(pos)
+ return rect.contains(pos.toPointF())
163
164
def _findClosestDataPoint(self, cx: float) -> QPointF:
165
distances = [(abs(point.x() - cx), point) for point in self._shown_point_list]
0 commit comments