[PyQt] QUrl Failed!
Miguel Alejandro Fernandez
alejandrogroso at hotmail.com
Mon Mar 14 22:41:45 GMT 2016
python 3.4 PyQt5.5.1
working in a proyect see next error:
path = 'file:///F:/WD SmartWare.swstor/QT/proyectos/ninja/ninja-ide-2.3/ninja_ide/tools/runner.py'
url = QUrl(path)
print(url.path())# first char "/" not removed
"/F:/WD SmartWare.swstor/QT/proyectos/ninja/ninja-ide-2.3/ninja_ide/tools/runner.py"
print(url.toLocalFile())
"F:/WD SmartWare.swstor/QT/proyectos/ninja/ninja-ide-2.3/ninja_ide/tools/runner.py"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160314/1902886e/attachment.html>
More information about the PyQt
mailing list