Bugreport: QDBusArgument does not work with PyQt6
Florian Bruhin
me at the-compiler.org
Fri Jul 1 11:09:49 BST 2022
Hey,
On Thu, Jun 30, 2022 at 07:55:42PM +0200, JakobDev wrote:
> This is strange. It crashes with message.setArguments() before it send
> anything, so there is nothing dbus-monitor could show. I have now
> attached a simpler code. The line
> arg.add(QDBusVariant(QByteArray(b"Hello"))) is the culprit. If I comment
> them out, it doesn't crash.- Also no crash under PyQt5 with this line.
Have you tried without QDBusVariant(...)? I use:
image_data = QDBusArgument()
image_data.beginStructure()
[...]
image_data.add(QByteArray(bits))
image_data.endStructure()
without any issues on PyQt6 here:
https://github.com/qutebrowser/qutebrowser/blob/qt6-v2/qutebrowser/browser/webengine/notification.py#L1114
Florian
--
me at the-compiler.org | https://www.qutebrowser.org
https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220701/c95b512c/attachment.sig>
More information about the PyQt
mailing list