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

Simpler header data unpacking with PySide2 compatability #20

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from

Conversation

ronpandolfi
Copy link

@ronpandolfi ronpandolfi commented Apr 20, 2023

All Qt python bindings provide a QByteArray.data() method. The try here is unnecessary, and also causes segfault when used with PySide2. PySide2 doesn't provide the convenience of direct casting QByteArray to string without .data() and rather segfaults if this is attempted, so always using .data() could be a universal solution.

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.

1 participant