Skip to content

Conversation

step305
Copy link

@step305 step305 commented Dec 19, 2023

No description provided.

@@ -827,7 +827,7 @@ def offsetToCenter(self):
aw, ah = area.width(), area.height()
x = (aw - w) / (2 * s) if aw > w else 0
y = (ah - h) / (2 * s) if ah > h else 0
return QtCore.QPointF(x, y)
return QtCore.QPointF(int(x), int(y))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QPointF should support float, so seems something else is wrong.

This change and the previous commit by @step305 resolve the issue on Ubuntu.
@krenax
Copy link

krenax commented Jun 15, 2024

I had the same issue. This small correction seems to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr::fix status: wip-by-author Actions have to be taken by the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants