qpainter

PySide6 app crashes when using QPainter.drawLine()

PySide6 app crashes when using QPainter.drawLine() Question: On Windows 10, python3.10, PySide6 (or PyQt6) QApplication crashes when calling QPainter.drawLine() . The terminal just displays : Process finished with exit code -1073741819 (0xC0000005) Please find below the code: import sys from PySide6.QtCore import QPoint, Qt from PySide6.QtGui import QColor, QPainter, QPen, QPixmap from PySide6.QtWidgets import QApplication, …

Total answers: 1