BasioMeusPuga / Lector

Qt based ebook reader
GNU General Public License v3.0
1.51k stars 207 forks source link

crash: toFillPolygon() not enough arguments #18

Closed tofuhead closed 6 years ago

tofuhead commented 6 years ago

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

tofuhead commented 6 years ago

edit. sorry, JUST after putting this up I realized my qt and pyqt5 versions are not what the requirements seem to say on the page :) sorry again.