Struct cxx_qt_lib::QCoreApplication
source · #[repr(C)]pub struct QCoreApplication { /* private fields */ }
Implementations§
source§impl QCoreApplication
impl QCoreApplication
sourcepub fn add_library_path(self: Pin<&mut Self>, path: &QString)
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.
sourcepub fn application_name(&self) -> QString
pub fn application_name(&self) -> QString
The name of this application
sourcepub fn application_version(&self) -> QString
pub fn application_version(&self) -> QString
The version of this application
sourcepub fn exec(self: Pin<&mut Self>) -> i32
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()).
sourcepub fn library_paths(&self) -> QStringList
pub fn library_paths(&self) -> QStringList
Returns a list of paths that the application will search when dynamically loading libraries.
sourcepub fn new() -> UniquePtr<Self>
pub fn new() -> UniquePtr<Self>
Initializes the window system and constructs an application object with command line arguments in args.
sourcepub fn organization_domain(&self) -> QString
pub fn organization_domain(&self) -> QString
The Internet domain of the organization that wrote this application
sourcepub fn organization_name(&self) -> QString
pub fn organization_name(&self) -> QString
The name of the organization that wrote this application
sourcepub fn set_application_name(self: Pin<&mut Self>, name: &QString)
pub fn set_application_name(self: Pin<&mut Self>, name: &QString)
Set the name of this application
sourcepub fn set_application_version(self: Pin<&mut Self>, version: &QString)
pub fn set_application_version(self: Pin<&mut Self>, version: &QString)
Set the version of this application
sourcepub fn set_library_paths(self: Pin<&mut Self>, paths: &QStringList)
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.
sourcepub fn set_organization_domain(self: Pin<&mut Self>, domain: &QString)
pub fn set_organization_domain(self: Pin<&mut Self>, domain: &QString)
Sets the Internet domain of the organization that wrote this application
sourcepub fn set_organization_name(self: Pin<&mut Self>, name: &QString)
pub fn set_organization_name(self: Pin<&mut Self>, name: &QString)
Sets the name of the organization that wrote this application