Struct qt_core::QLibraryInfo
source · #[repr(C)]pub struct QLibraryInfo { /* private fields */ }
Expand description
The QLibraryInfo class provides information about the Qt library.
C++ class: QLibraryInfo
.
The QLibraryInfo class provides information about the Qt library.
Many pieces of information are established when Qt is configured and built. This class provides an abstraction for accessing that information. By using the static functions of this class, an application can obtain information about the instance of the Qt library which the application is using at run-time.
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 Using qt.conf documentation.
Implementations§
source§impl QLibraryInfo
impl QLibraryInfo
sourcepub unsafe fn build() -> *const c_char
pub unsafe fn build() -> *const c_char
Calls C++ function: static const char* QLibraryInfo::build()
.
sourcepub unsafe fn build_date() -> CppBox<QDate>
pub unsafe fn build_date() -> CppBox<QDate>
This function used to return the installation date for this build of Qt, but now returns a constant date.
Calls C++ function: static QDate QLibraryInfo::buildDate()
.
This function used to return the installation date for this build of Qt, but now returns a constant date.
This function was introduced in Qt 4.6.
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QLibraryInfo>>
) -> Ref<QLibraryInfo>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QLibraryInfo>> ) -> Ref<QLibraryInfo>
The QLibraryInfo class provides information about the Qt library.
Calls C++ function: QLibraryInfo& QLibraryInfo::operator=(const QLibraryInfo& other)
.
The QLibraryInfo class provides information about the Qt library.
Many pieces of information are established when Qt is configured and built. This class provides an abstraction for accessing that information. By using the static functions of this class, an application can obtain information about the instance of the Qt library which the application is using at run-time.
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 Using qt.conf documentation.
sourcepub unsafe fn is_debug_build() -> bool
pub unsafe fn is_debug_build() -> bool
Returns true
if this build of Qt was built with debugging enabled, or false if it was built in release mode.
Calls C++ function: static bool QLibraryInfo::isDebugBuild()
.
Returns true
if this build of Qt was built with debugging enabled, or false if it was built in release mode.
This function was introduced in Qt 5.0.
sourcepub unsafe fn licensed_products() -> CppBox<QString>
pub unsafe fn licensed_products() -> CppBox<QString>
This function used to return the products that the license for this build of Qt has access to, now returns an empty string.
Calls C++ function: static QString QLibraryInfo::licensedProducts()
.
This function used to return the products that the license for this build of Qt has access to, now returns an empty string.
sourcepub unsafe fn licensee() -> CppBox<QString>
pub unsafe fn licensee() -> CppBox<QString>
This function used to return the person to whom this build of Qt is licensed, now returns an empty string.
Calls C++ function: static QString QLibraryInfo::licensee()
.
This function used to return the person to whom this build of Qt is licensed, now returns an empty string.
sourcepub unsafe fn location(arg1: LibraryLocation) -> CppBox<QString>
pub unsafe fn location(arg1: LibraryLocation) -> CppBox<QString>
Returns the location specified by loc.
Calls C++ function: static QString QLibraryInfo::location(QLibraryInfo::LibraryLocation arg1)
.
Returns the location specified by loc.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QLibraryInfo>>
) -> CppBox<QLibraryInfo>
pub unsafe fn new_copy( other: impl CastInto<Ref<QLibraryInfo>> ) -> CppBox<QLibraryInfo>
The QLibraryInfo class provides information about the Qt library.
Calls C++ function: [constructor] void QLibraryInfo::QLibraryInfo(const QLibraryInfo& other)
.
The QLibraryInfo class provides information about the Qt library.
Many pieces of information are established when Qt is configured and built. This class provides an abstraction for accessing that information. By using the static functions of this class, an application can obtain information about the instance of the Qt library which the application is using at run-time.
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 Using qt.conf documentation.
sourcepub unsafe fn platform_plugin_arguments(
platform_name: impl CastInto<Ref<QString>>
) -> CppBox<QStringList>
pub unsafe fn platform_plugin_arguments( platform_name: impl CastInto<Ref<QString>> ) -> CppBox<QStringList>
Calls C++ function: static QStringList QLibraryInfo::platformPluginArguments(const QString& platformName)
.
sourcepub unsafe fn version() -> CppBox<QVersionNumber>
pub unsafe fn version() -> CppBox<QVersionNumber>
Returns the version of the Qt library.
Calls C++ function: static QVersionNumber QLibraryInfo::version()
.
Returns the version of the Qt library.
This function was introduced in Qt 5.8.
See also qVersion().
Trait Implementations§
source§impl CppDeletable for QLibraryInfo
impl CppDeletable for QLibraryInfo
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QLibraryInfo class provides information about the Qt library.
Calls C++ function: [destructor] void QLibraryInfo::~QLibraryInfo()
.
The QLibraryInfo class provides information about the Qt library.
Many pieces of information are established when Qt is configured and built. This class provides an abstraction for accessing that information. By using the static functions of this class, an application can obtain information about the instance of the Qt library which the application is using at run-time.
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 Using qt.conf documentation.