Gambas Documentation - /comp/gb.qt4/application

/comp/gb.qt4/application

# Application (gb.qt4)

This static class gives global information about the application.

This class reimplements Application in gb.
This class is static.

Static properties

Returns the control having the focus.
ActiveControl
Returns the current active window, i.e. the window that owns the control having the focus.
ActiveWindow
Returns an array containing the arguments passed to the program by the shell.
Args
Modifies the busy state of the application.
Busy
Set this property to TRUE to make the current application a daemon.
Daemon
Returns the application directory.
Dir
Defines the X11 window identifier where the next opened window will be embedded into.
Embedder
Returns a virtual collection of strings containing the process environment variables.
Env
Returns or modifies the application global default font.
Font
Returns the system pid (process identifier) of your program. This returns the same value as the property named Id.
Handle
Returns the system pid (process identifier) of your program. This returns the same value as the property named Handle.
Id
Returns or sets the main window of the application.
MainWindow
Return the application name, as defined in the IDE project properties dialog.
Name
Returns the application path, i.e. the directory where it resides.
Path
Return the previous control that had the focus after a focus change.
PreviousControl
Return or set the current process priority.
Priority
Return or set the restart command that will be sent to the session manager.
Restart
Return or set if tooltips are visible or not.
ShowTooltips
Return the startup class object.
Startup
Returns or sets the global application theme.
Theme
Returns the title of the application being executed.
Title
Returns the program version, as defined in the IDE project properties dialog.
Version