[PyQt] Problem loading qml when pyqtdeployed

Phil Thompson phil at riverbankcomputing.com
Fri Jan 9 17:48:45 GMT 2015


On 09/01/2015 5:19 pm, bootch at nc.rr.com wrote:
> In short:
> 
> qmlUrl=QUrl.fromLocalFile(QFileInfo(__file__).path() +
> "/appPackage/qml/toolBar.qml")
> quickView.setSource(qmlUrl)
> 
> doesn't work when pyqtdeployed, although it works when invoked from
> Python.  Also, I can load icons using similar construct (without
> wrapping in QUrl().  I don't see a way to load the quickview without
> calling QUrl() ).

Try passing the value to the QUrl ctor rather than to fromLocalFile().

Phil


More information about the PyQt mailing list