Struct cxx_qt_lib::QGuiApplication

source ·
#[repr(C)]
pub struct QGuiApplication { /* private fields */ }

Implementations§

source§

impl QGuiApplication

source

pub fn add_library_path(self: Pin<&mut Self>, path: &QString)

Prepends path to the beginning of the library path list, ensuring that it is searched for libraries first. If path is empty or already in the path list, the path list is not changed.

source

pub fn application_name(&self) -> QString

The name of this application

source

pub fn application_version(&self) -> QString

The version of this application

source

pub fn exec(self: Pin<&mut Self>) -> i32

Enters the main event loop and waits until exit() is called, and then returns the value that was set to exit() (which is 0 if exit() is called via quit()).

source

pub fn library_paths(&self) -> QStringList

Returns a list of paths that the application will search when dynamically loading libraries.

source

pub fn new() -> UniquePtr<Self>

Initializes the window system and constructs an application object. Standard Qt command line arguments are handled automatically.

source

pub fn organization_domain(&self) -> QString

The Internet domain of the organization that wrote this application

source

pub fn organization_name(&self) -> QString

The name of the organization that wrote this application

source

pub fn set_application_name(self: Pin<&mut Self>, name: &QString)

Set the name of this application

source

pub fn set_application_version(self: Pin<&mut Self>, version: &QString)

Set the version of this application

source

pub fn set_library_paths(self: Pin<&mut Self>, paths: &QStringList)

Sets the list of directories to search when loading plugins with QLibrary to paths. All existing paths will be deleted and the path list will consist of the paths given in paths and the path to the application.

source

pub fn set_organization_domain(self: Pin<&mut Self>, domain: &QString)

Sets the Internet domain of the organization that wrote this application

source

pub fn set_organization_name(self: Pin<&mut Self>, name: &QString)

Sets the name of the organization that wrote this application

Trait Implementations§

source§

impl ExternType for QGuiApplication

§

type Kind = Opaque

§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
source§

impl UniquePtrTarget for QGuiApplication

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