PlotPyStack / PythonQwt

Qt plotting widgets for Python (pure Python reimplementation of Qwt C++ library)
https://pypi.org/project/PythonQwt/
Other
87 stars 25 forks source link

Incorrect argument type during fillPixmap for StyledBackground #43

Closed ericjmcd closed 4 years ago

ericjmcd commented 8 years ago

For PyQt5 (not using PySide) fillPixmap uses a QRect object as an argument to painter.setClipRegion for the StyledBackground case but it should be a QRegion object (line 392). if widget.testAttribute(Qt.WA_StyledBackground): painter.setClipRegion(rect) which can be fixed by importing QRegion from QtGUI and then creating that object inline. if widget.testAttribute(Qt.WA_StyledBackground): painter.setClipRegion(QRegion(rect))

PierreRaybaut commented 4 years ago

Duplicate of #49