I haven't used QPainterPath() so not an expert, but looking at the code on that line:
mask = QtGui.QRegion(self.path.toFillPolygon().toPolygon())
toFillPolygon indeed doesn't have any arguments passed to it?
here's the error:
Traceback (most recent call last):
File "lector/main.py", line 1206, in
main()
File "lector/main.py", line 1199, in main
form = MainUI()
File "lector/main.py", line 87, in init
self.metadataDialog = MetadataUI(self)
File "/home/basse/src/Lector/lector/metadatadialog.py", line 42, in init
mask = QtGui.QRegion(self.path.toFillPolygon().toPolygon())
TypeError: toFillPolygon(self, QTransform): not enough arguments
trying to launch it I get a crash.
python 3.6.3 pyqt 5.7
I haven't used QPainterPath() so not an expert, but looking at the code on that line: mask = QtGui.QRegion(self.path.toFillPolygon().toPolygon())
toFillPolygon indeed doesn't have any arguments passed to it?
here's the error:
Traceback (most recent call last): File "lector/main.py", line 1206, in
main()
File "lector/main.py", line 1199, in main
form = MainUI()
File "lector/main.py", line 87, in init
self.metadataDialog = MetadataUI(self)
File "/home/basse/src/Lector/lector/metadatadialog.py", line 42, in init
mask = QtGui.QRegion(self.path.toFillPolygon().toPolygon())
TypeError: toFillPolygon(self, QTransform): not enough arguments