PySide.QtCore.QLibraryInfo class provides information about the Qt library.
Many pieces of information are established when Qt is configured. Installation paths, license information, and even a unique build key. This class provides an abstraction for accessing this information.
| 函数 | 返回值 |
| PySide.QtCore.QLibraryInfo.buildKey() | A string that identifies the Qt version and the configuration. This key is used to ensure that plugins link against the same version of Qt as the application. |
| PySide.QtCore.QLibraryInfo.location() | The path to a certain Qt component (e.g., documentation, header files). |
| PySide.QtCore.QLibraryInfo.licensee() , PySide.QtCore.QLibraryInfo.licensedProducts() | Licensing information. |
You can also use a qt.conf file to override the hard-coded paths that are compiled into the Qt library. For more information, see the 使用 qt.conf 文档编制。
另请参阅
PySide.QtCore.QSysInfo 使用 qt.conf
This enum type is used to specify a specific location specifier:
| 常量 | 描述 |
|---|---|
| QLibraryInfo.PrefixPath | The default prefix for all paths. |
| QLibraryInfo.DocumentationPath | The location for documentation upon install. |
| QLibraryInfo.HeadersPath | The location for all headers. |
| QLibraryInfo.LibrariesPath | The location of installed libraries. |
| QLibraryInfo.BinariesPath | The location of installed Qt binaries (tools and applications). |
| QLibraryInfo.PluginsPath | The location of installed Qt plugins. |
| QLibraryInfo.ImportsPath | The location of installed QML extensions to import. |
| QLibraryInfo.DataPath | The location of general Qt data. |
| QLibraryInfo.TranslationsPath | The location of translation information for Qt strings. |
| QLibraryInfo.SettingsPath | The location for Qt settings. |
| QLibraryInfo.ExamplesPath | The location for examples upon install. |
| QLibraryInfo.DemosPath | The location for demos upon install. |
| 返回类型: | PySide.QtCore.QDate |
|---|
Returns the installation date for this build of Qt. The install date will usually be the last time that Qt sources were configured.
| 返回类型: | unicode |
|---|
Returns a unique key identifying this build of Qt and its configurations. This key is not globally unique, rather only useful for establishing of two configurations are compatible. This can be used to compare with the QT_BUILD_KEY preprocessor symbol.
| 返回类型: | unicode |
|---|
Returns the products that the license for this build of Qt has access to.
| 返回类型: | unicode |
|---|
Returns the person to whom this build of Qt is licensed.
| 参数: | arg__1 – PySide.QtCore.QLibraryInfo.LibraryLocation |
|---|---|
| 返回类型: | unicode |
Returns the location specified by loc .