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
> 
> <[email protected]> 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 
another one).

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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to