Hi Nicholas, that is right. Sometimes you need a resource path and sometimes an URI. You can for instance open a file from your bundled resources with QFile, which requires a path as QString. But a QQuickView::setSource() expects a QUrl.
Best regards, Frank On 02.05.21 03:04, Nicholas Yue wrote: > Hi, > > Learning about QtCreator, I see that one may obtain a Path or URL to a > resource. > > When loading files (via e.g. c++) a resource what is the difference ? i.e. > which should one use as a best practice ? > > image.png > > Cheers > -- > Nicholas Yue > Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5 > Custom Dev - C++ porting, OSX, Linux, Windows > http://au.linkedin.com/in/nicholasyue <http://au.linkedin.com/in/nicholasyue> > https://vimeo.com/channels/naiadtools <https://vimeo.com/channels/naiadtools> > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest