Skip to content

Commit 6fb9b73

Browse files
committed
migration: fix unexpected QWidget border
1 parent 28f2dd2 commit 6fb9b73

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

examples/Gallery for siui/start.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def show_version_message(window):
3838

3939
if __name__ == "__main__":
4040
app = QApplication(sys.argv)
41+
app.setStyle("Fusion")
4142

4243
window = MySiliconApp()
4344
window.show()

siui/components/chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def event(self, event):
159159

160160
def _isMousePosValid(self, pos: QPoint) -> bool:
161161
rect = self._getChartRect()
162-
return rect.contains(pos)
162+
return rect.contains(pos.toPointF())
163163

164164
def _findClosestDataPoint(self, cx: float) -> QPointF:
165165
distances = [(abs(point.x() - cx), point) for point in self._shown_point_list]

0 commit comments

Comments
 (0)