Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant