Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening plugin (unexpected type 'float' in QRect constructor) #38

Open
ster-sjo opened this issue Oct 11, 2024 · 2 comments
Open

Comments

@ster-sjo
Copy link

When we open the plugin we encounter the following error:

2024-10-11T11:31:55 WARNING Traceback (most recent call last):
File "C:\Users/sjo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\instantprint\InstantPrintTool.py", line 166, in __selectLayout
self.__createRubberBand()
File "C:\Users/sjo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\instantprint\InstantPrintTool.py", line 176, in __createRubberBand
self.rubberband.setToCanvasRectangle(self.__canvasRect(self.rect))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/sjo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\instantprint\InstantPrintTool.py", line 251, in __canvasRect
return QRect(p1.x(), p1.y(), p2.x() - p1.x(), p2.y() - p1.y())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QRect(): too many arguments
QRect(aleft: int, atop: int, awidth: int, aheight: int): argument 1 has unexpected type 'float'
QRect(atopLeft: QPoint, abottomRight: QPoint): argument 1 has unexpected type 'float'
QRect(atopLeft: QPoint, asize: QSize): argument 1 has unexpected type 'float'
QRect(a0: QRect): argument 1 has unexpected type 'float'

@tpo
Copy link
Member

tpo commented Oct 11, 2024

It would be helpful to know the version of the plugin and the version of QGIS

@ster-sjo
Copy link
Author

Ah, sorry, of course. QGIS 3.34.11 LTR, Plugin Version 3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants