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

Fix the OpenGLScreenGrabber for QQuickWidgetOffscreenWindow in Qt6.8+ #1029

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

milianw
Copy link
Member

@milianw milianw commented Jan 2, 2025

For me at least, the y offset has to be 0, otherwise we grab an offset part of the image. Furthermore, the x offset has to be hidpi adapted too.

I cannot test the other Qt versions, so I'll assume this code used to work fine there and only touch this for Qt 6.8+

@milianw
Copy link
Member Author

milianw commented Jan 2, 2025

without this patch:

Screenshot_20250102_165823

For me at least, the y offset has to be 0, otherwise we grab an offset
part of the image. Furthermore, the x offset has to be hidpi adapted
too.

I cannot test the other Qt versions, so I'll assume this code used to
work fine there and only touch this for Qt 6.8+
@milianw milianw force-pushed the wip/fix-quick-inspector-quickwidget branch from ceb1dcc to 78161ae Compare January 2, 2025 16:44
@Waqar144 Waqar144 merged commit 219f2ef into KDAB:master Jan 3, 2025
18 checks passed
@milianw milianw deleted the wip/fix-quick-inspector-quickwidget branch January 3, 2025 08:50
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

Successfully merging this pull request may close these issues.

2 participants