Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
redlars last edited by
In this "document":http://doc.qt.nokia.com/4.7-snapshot/qt-conf.html
QLibraryInfo will load qt.conf from one of the following locations:
- :/qt/etc/qt.conf using the resource system
- on Mac OS X, in the Resource directory inside the appliction bundle, for example assistant.app/Contents/Resources/qt.conf
- in the directory containing the application executable, i.e. QCoreApplication::applicationDirPath() + QDir::separator() + "qt.conf"
The description of the first item is a bit unclear to me.
The understanding I have of the resource system is a way to embedding binary data like images into a executable. So with that context, are they say Qt will look inside the executable embedded data for the qt.conf file? Is the path ":/qt/etc/qt.conf" the location inside the executable where qt.conf must be stored?
lycis last edited by
The Qt resource system allows you to embed a kind of virtual filesystem within the binary. The path ":qt/etc/qt.conf" does extactly mean what you're suspecting:
QLibraryInfo first looks inside the embedded data if the "virtual filesystem" contains a file qt.conf in the path qt/etc/qt.conf - so yes that's the path "inside the executable" the file has to be stored.
Mayby this one will help you a bit on this topic: "Qt Resource System":http://qt-project.org/doc/qt-4.8/resources.html