[Development] QStandardPath search paths
Alan Alpert
416365416c at gmail.com
Wed Jul 31 02:45:20 CEST 2013
I was just adding the cross-platform asset directory as a search path
(https://codereview.qt-project.org/#change,61859 , with functionality
as discussed as part of adaptable UI) and the question arose: Why
aren't all (or at least some) standard paths available as search
paths?
Self documenting examples of what this would look like:
QFile ("tmp:/tmpfile");
QFile ("appData:dataFile");
QQmlApplicationEngine("assets:/main.qml");
It would be a nice developer convenience, and easy for me to implement
along with asset:. But it's not needed in the same way that asset: is,
which is so that you can write asset: paths outside of #ifdef
Q_OS_ANDROID blocks.
Does anyone have an opinion on whether I should or should not add all
the other QStandardPaths along with assets?
--
Alan Alpert
More information about the Development
mailing list