-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.9.2
-
None
In Pyside6 there is no way to differentiate if QTranslator::translate returned a null string or an empty string.
Both cases are cast to an empty python string.
I would expect the null string to be cast to python None.
from PySide6.QtCore import QTranslator t = QTranslator() # This returns a null QString which is cast to an empty python string. s = t.translate("thisis", "atest") assert s == ""
- relates to
-
PYSIDE-3193 Type hint: Subclassing QTranslator::translate
-
- Reported
-