[Development] QStandardPath search paths
thiago.macieira at intel.com
Wed Jul 31 20:23:47 CEST 2013
On quarta-feira, 31 de julho de 2013 11:18:38, Alan Alpert wrote:
> On Wed, Jul 31, 2013 at 11:13 AM, Thiago Macieira
> <thiago.macieira at intel.com> wrote:
> > On quarta-feira, 31 de julho de 2013 11:05:56, Alan Alpert wrote:
> >> Search paths make "asset:/main.qml" work on all platforms. I don't see
> >> how QStandardPaths::locate would work here other than
> >> #ifndef Q_OS_ANDROID
> >> QStandardPaths::locate(AssetPath, "main.qml");
> >> #else
> >> "asset:/main.qml";
> >> #endif
> > Why can't QStandardPaths::locate return "asset:/main.qml" ?
> Because it's not a proper filepath. Or does not not matter so long as
> we maintain the VFS characteristics which allow QFile/QDir to pretend
> it is?
It's a file engine. File engines are bad. No one disputes that (yet we added
If QFile can open it, what's wrong with returning it, though?
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Development