QPoint(): too many arguments

Bug #1967662 reported by Arnaud Kientz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Qarte
Fix Released
Undecided
VinsS

Bug Description

Hello,

I got the following error:

Traceback (most recent call last):
  File "/usr/share/qarte/gui/mainui.py", line 386, in mouseMoveEvent
    self.startDrag(event)
  File "/usr/share/qarte/gui/mainui.py", line 380, in startDrag
    drag.setHotSpot(QPoint(pixmap.width()/2, pixmap.height()))
TypeError: arguments did not match any overloaded call:
  QPoint(): too many arguments
  QPoint(int, int): argument 1 has unexpected type 'float'
  QPoint(QPoint): argument 1 has unexpected type 'float'

Solution:

Edit /usr/share/qarte/gui/mainui.py at line 380 and replace

drag.setHotSpot(QPoint(pixmap.width()/2, pixmap.height()))

by

drag.setHotSpot(QPoint(pixmap.width()//2, pixmap.height()))

Cheers

Arnaud

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

I can't reproduce it but I presume this is a new behavior of a more recent version of PyQt than mine.

Thanks for the report.

Changed in qarte:
status: New → In Progress
assignee: nobody → VinsS (vincent-vandevyvre)
Revision history for this message
Arnaud Kientz (kiarn) wrote :

Yes, probably. I should have mentioned the PyQt5 version, here it is :

python3-pyqt5 5.15.6+dfsg-1+b2 (under debian sid)

Thanks !

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

Fixed in version 5.0

Changed in qarte:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.