Using qt.conf
|
Entry | Default Value |
---|---|
Prefix | QCoreApplication::applicationDirPath() |
Documentation | doc |
Headers | include |
Libraries | lib |
Binaries | bin |
Plugins | plugins |
Data | . |
Translations | translations |
Settings | . |
Examples | . |
Demos | . |
Absolute paths are used as specified in the qt.conf file. All paths are relative to the Prefix. On Windows and X11, the Prefix is relative to the directory containing the application executable (QCoreApplication::applicationDirPath()). On Mac OS X, the Prefix is relative to the Contents in the application bundle. For example, application.app/Contents/plugins/ is the default location for loading Qt plugins.
For example, a qt.conf file could contain the following:
[Paths] Prefix = /some/path Translations = i18n
Subgroups of the Paths group may be used to specify locations for specific versions of the Qt libraries. Such subgroups are of the form Paths/x.y.z, where x is the major version of the Qt libraries, y the minor, and z the patch level. The subgroup that most closely matches the current Qt version is used. If no subgroup matches, the Paths group is used as the fallback. The minor and patch level values may be omitted, in which case they default to zero.
For example, given the following groups:
Paths Paths/4 Paths/4.1 Paths/4.2.5 Paths/6
The current version will be matched as shown:
Copyright © 2008 Nokia | Trademarks | Qt 4.4.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |