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.

C++ documentation:

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

source

pub unsafe fn build() -> *const c_char

Calls C++ function: static const char* QLibraryInfo::build().

source

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().

C++ documentation:

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.

source

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).

C++ documentation:

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.

source

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().

C++ documentation:

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.

source

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().

C++ documentation:

This function used to return the products that the license for this build of Qt has access to, now returns an empty string.

source

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().

C++ documentation:

This function used to return the person to whom this build of Qt is licensed, now returns an empty string.

source

pub unsafe fn location(arg1: LibraryLocation) -> CppBox<QString>

Returns the location specified by loc.

Calls C++ function: static QString QLibraryInfo::location(QLibraryInfo::LibraryLocation arg1).

C++ documentation:

Returns the location specified by loc.

source

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).

C++ documentation:

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.

source

pub unsafe fn platform_plugin_arguments( platform_name: impl CastInto<Ref<QString>> ) -> CppBox<QStringList>

Calls C++ function: static QStringList QLibraryInfo::platformPluginArguments(const QString& platformName).

source

pub unsafe fn version() -> CppBox<QVersionNumber>

Returns the version of the Qt library.

Calls C++ function: static QVersionNumber QLibraryInfo::version().

C++ documentation:

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

source§

unsafe fn delete(&self)

The QLibraryInfo class provides information about the Qt library.

Calls C++ function: [destructor] void QLibraryInfo::~QLibraryInfo().

C++ documentation:

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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.