#872·labelImg

Crashes on Windows when drawing rectangle

Author: johnprice-xeroxCreated May 3, 2022Updated Feb 1, 2024

Traceback (most recent call last): File "C:\Users\5052xxxx\AppData\Local\Programs\Python\Python310\lib\site-packages\libs\canvas.py", line 530, in paintEvent p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height()) TypeError: arguments did not match any overloaded call: drawLine(self, QLineF): argument 1 has unexpected type 'float' drawLine(self, QLine): argument 1 has unexpected type 'float' drawLine(self, int, int, int, int): argument 1 has unexpected type 'float' drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float' drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'

  • **OS: Windows 10 and Windows server 2019 Datacenter
  • PyQt version: 1.8.6