Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.5.0
-
None
-
-
551e6d68e (dev), a31777a69 (6.5)
Description
QMetaObject::indexOfMethod(const char*); index = metaobject.indexOfMethod(b"destroyed") ValueError: 'PySide6.QtCore.QMetaObject.indexOfMethod' called with wrong argument values: PySide6.QtCore.QMetaObject.indexOfMethod(b'destroyed',) Found signature: PySide6.QtCore.QMetaObject.indexOfMethod(bytes)
It seems that indexOfMethod (and perhaps also the other indexOf methods) is broken.
When passing the name as bytes, it throws a ValueError, when passing the name as str it just returns -1.
Example should make it obvious.
Cheers!
UPDATE: Was error on my side. The misleading Exception message could still be fixed.
Attachments
Issue Links
- relates to
-
PYSIDE-2357 PySide6: QCoreApplication.translate() expects bytes according to type stubs
- Closed