Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.11.0
-
None
-
Python 3.6 64Bit
Description
QUrl.fromLocalFile expects a str, but typing annotation says QUrl.
If you do actually supply a QUrl, this is the result:
Traceback (most recent call last): File "./UI/src/testqml.py", line 13, in <module> view.setSource(QUrl.fromLocalFile(QUrl("Login.qml"))) TypeError: 'PySide2.QtCore.QUrl.fromLocalFile' called with wrong argument types: PySide2.QtCore.QUrl.fromLocalFile(PySide2.QtCore.QUrl) Supported signatures: PySide2.QtCore.QUrl.fromLocalFile(unicode)