<class name="QCoreApplication" doc="/**
&lt;p&gt;The &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; class provides an event loop for console Qt applications.&lt;/p&gt;
&lt;p&gt;This class is used by non-GUI applications to provide their event loop. For non-GUI application that uses Qt, there should be exactly one &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; object. For GUI applications, see &lt;a href=&quot;%2E%2E/gui/QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; contains the main event loop, where all events from the operating system (e.g&amp;#x2e;, timer and network events) and other sources are processed and dispatched. It also handles the application's initialization and finalization, as well as system-wide and application-wide settings.&lt;/p&gt;
&lt;p&gt;The command line arguments which &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt;'s constructor should be called with are accessible using &lt;a href=&quot;QCoreApplication.html#arguments()&quot;&gt;&lt;tt&gt;arguments&lt;/tt&gt;&lt;/a&gt;. The event loop is started with a call to &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;. Long running operations can call &lt;a href=&quot;QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags, int)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt; to keep the application responsive.&lt;/p&gt;
&lt;p&gt;Some Qt classes, such as &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;, can be used without a &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; object. However, in general, we recommend that you create a &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; or a &lt;a href=&quot;%2E%2E/gui/QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object in your &lt;tt&gt;main()&lt;/tt&gt; function as early as possible. The application will enter the event loop when &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; is called. &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; will not return until the event loop exits, e.g&amp;#x2e;, when &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;
&lt;p&gt;An application has an &lt;a href=&quot;QCoreApplication.html#applicationDirPath()&quot;&gt;&lt;tt&gt;applicationDirPath&lt;/tt&gt;&lt;/a&gt; and an &lt;a href=&quot;QCoreApplication.html#applicationFilePath()&quot;&gt;&lt;tt&gt;applicationFilePath&lt;/tt&gt;&lt;/a&gt;. Translation files can be added or removed using &lt;a href=&quot;QCoreApplication.html#installTranslator(com.trolltech.qt.core.QTranslator)&quot;&gt;&lt;tt&gt;installTranslator&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QCoreApplication.html#removeTranslator(com.trolltech.qt.core.QTranslator)&quot;&gt;&lt;tt&gt;removeTranslator&lt;/tt&gt;&lt;/a&gt;. Application strings can be translated using translate(). The QObject::tr() and QObject::trUtf8() functions are implemented in terms of translate().&lt;/p&gt;
&lt;p&gt;The class provides a &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt; slot and an &lt;a href=&quot;QCoreApplication.html#aboutToQuit()&quot;&gt;&lt;tt&gt;aboutToQuit&lt;/tt&gt;&lt;/a&gt; signal.&lt;/p&gt;
&lt;p&gt;Several static convenience functions are also provided. The &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; object is available from &lt;a href=&quot;QCoreApplication.html#instance()&quot;&gt;&lt;tt&gt;instance&lt;/tt&gt;&lt;/a&gt;. Events can be sent or posted using &lt;a href=&quot;QCoreApplication.html#sendEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QCoreApplication.html#sendPostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;sendPostedEvents&lt;/tt&gt;&lt;/a&gt;. Pending events can be removed with &lt;a href=&quot;QCoreApplication.html#removePostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;removePostedEvents&lt;/tt&gt;&lt;/a&gt; or flushed with &lt;a href=&quot;QCoreApplication.html#flush()&quot;&gt;&lt;tt&gt;flush&lt;/tt&gt;&lt;/a&gt;. Library paths (see QLibrary) can be retrieved with &lt;a href=&quot;QCoreApplication.html#libraryPaths()&quot;&gt;&lt;tt&gt;libraryPaths&lt;/tt&gt;&lt;/a&gt; and manipulated by &lt;a href=&quot;QCoreApplication.html#setLibraryPaths(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setLibraryPaths&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QCoreApplication.html#addLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;addLibraryPath&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QCoreApplication.html#removeLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;removeLibraryPath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/gui/QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractEventDispatcher.html&quot;&gt;&lt;tt&gt;QAbstractEventDispatcher&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QEventLoop.html&quot;&gt;&lt;tt&gt;QEventLoop&lt;/tt&gt;&lt;/a&gt;
@see Semaphores Example&lt;/tt&gt;
@see Wait Conditions Example&lt;/tt&gt; */">
    <signal name="protected final void aboutToQuit()" doc="/**
&lt;p&gt;This signal is emitted when the application is about to quit the main event loop, e.g&amp;#x2e; when the event loop level drops to zero. This may happen either after a call to &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt; from inside the application or when the users shuts down the entire desktop session.&lt;/p&gt;
&lt;p&gt;The signal is particularly useful if your application has to do some last-second cleanup. Note that no user interaction is possible in this state.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void unixSignal(int arg__1)" doc="/**
&lt;p&gt;&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean notify(com.trolltech.qt.core.QObject arg__1, com.trolltech.qt.core.QEvent arg__2)" doc="/**
&lt;p&gt;Sends &lt;tt&gt;arg__2&lt;/tt&gt; to &lt;tt&gt;arg__1&lt;/tt&gt;: &lt;tt&gt;arg__1&lt;/tt&gt;-&amp;gt;event(&lt;tt&gt;arg__2&lt;/tt&gt;). Returns the value that is returned from the receiver's event handler.&lt;/p&gt;
&lt;p&gt;For certain types of events (e.g&amp;#x2e; mouse and key events), the event will be propagated to the receiver's parent and so on up to the top-level object if the receiver is not interested in the event (i.e&amp;#x2e;, it returns false).&lt;/p&gt;
&lt;p&gt;There are five different ways that events can be processed; reimplementing this virtual function is just one of them. All five approaches are listed below:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;Reimplementing paintEvent(), mousePressEvent() and so on. This is the commonest, easiest and least powerful way.&lt;/li&gt;
&lt;li&gt;Reimplementing this function. This is very powerful, providing complete control; but only one subclass can be active at a time.&lt;/li&gt;
&lt;li&gt;Installing an event filter on QCoreApplication::instance(). Such an event filter is able to process all events for all widgets, so it's just as powerful as reimplementing &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt;; furthermore, it's possible to have more than one application-global event filter. Global event filters even see mouse events for disabled widgets&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;Reimplementing QObject::event() (as &lt;a href=&quot;%2E%2E/gui/QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; does). If you do this you get Tab key presses, and you get to see the events before any widget-specific event filters.&lt;/li&gt;
&lt;li&gt;Installing an event filter on the object. Such an event filter gets all the events except Tab and Shift-Tab key presses.&lt;/li&gt;
&lt;/ol&gt;

@see &lt;tt&gt;QObject::event&lt;/tt&gt;
@see &lt;a href=&quot;QObject.html#installEventFilter(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;installEventFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void addLibraryPath(java.lang.String arg__1)" doc="/**
&lt;p&gt;Appends &lt;tt&gt;arg__1&lt;/tt&gt; to the end of the library path list. If &lt;tt&gt;arg__1&lt;/tt&gt; is empty or already in the path list, the path list is not changed.&lt;/p&gt;
&lt;p&gt;The default path list consists of a single entry, the installation directory for plugins. The default installation directory for plugins is &lt;tt&gt;INSTALL/plugins&lt;/tt&gt;, where &lt;tt&gt;INSTALL&lt;/tt&gt; is the directory where Qt was installed.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#removeLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;removeLibraryPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#libraryPaths()&quot;&gt;&lt;tt&gt;libraryPaths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#setLibraryPaths(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setLibraryPaths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String applicationDirPath()" doc="/**
&lt;p&gt;Returns the directory that contains the application executable.&lt;/p&gt;
&lt;p&gt;For example, if you have installed Qt in the &lt;tt&gt;C:\Trolltech\Qt&lt;/tt&gt; directory, and you run the &lt;tt&gt;regexp&lt;/tt&gt; example, this function will return &amp;quot;C:/Trolltech/Qt/examples/tools/regexp&amp;quot;.&lt;/p&gt;
&lt;p&gt;On Mac OS X this will point to the directory actually containing the executable, which may be inside of an application bundle (if the application is bundled).&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; On Unix, this function assumes that argv[0] contains the file name of the executable (which it normally does). It also assumes that the current directory hasn't been changed by the application.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#applicationFilePath()&quot;&gt;&lt;tt&gt;applicationFilePath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String applicationFilePath()" doc="/**
&lt;p&gt;Returns the file path of the application executable.&lt;/p&gt;
&lt;p&gt;For example, if you have installed Qt in the &lt;tt&gt;/usr/local/qt&lt;/tt&gt; directory, and you run the &lt;tt&gt;regexp&lt;/tt&gt; example, this function will return &amp;quot;/usr/local/qt/examples/tools/regexp/regexp&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; On Unix, this function assumes that argv[0] contains the file name of the executable (which it normally does). It also assumes that the current directory hasn't been changed by the application.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#applicationDirPath()&quot;&gt;&lt;tt&gt;applicationDirPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String applicationName()" doc="/**
&lt;p&gt;Returns the name of this application.&lt;/p&gt;
&lt;p&gt;The value is used by the &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; class when it is constructed using the empty constructor. This saves having to repeat this information each time a &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; object is created.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#setApplicationName(java.lang.String)&quot;&gt;&lt;tt&gt;setApplicationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; arguments()" doc="/**
&lt;p&gt;Returns the list of command-line arguments.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QCoreApplication.html#arguments()&quot;&gt;&lt;tt&gt;arguments&lt;/tt&gt;&lt;/a&gt;.at(0) is the program name, &lt;a href=&quot;QCoreApplication.html#arguments()&quot;&gt;&lt;tt&gt;arguments&lt;/tt&gt;&lt;/a&gt;.at(1) is the first argument, and &lt;a href=&quot;QCoreApplication.html#arguments()&quot;&gt;&lt;tt&gt;arguments&lt;/tt&gt;&lt;/a&gt;.last() is the last argument.&lt;/p&gt;
&lt;p&gt;Calling this function is slow - you should store the result in a variable when parsing the command line.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; On Unix, this list is built from the argc and argv parameters passed to the constructor in the main() function. The string-data in argv is interpreted using QString::fromLocal8Bit(); hence it is not possible to pass i.e&amp;#x2e; Japanese command line arguments on a system that runs in a latin1 locale. Most modern Unix systems do not have this limitation, as they are Unicode based.&lt;/p&gt;
&lt;p&gt;On NT-based Windows, this limitation does not apply either.&lt;/p&gt;
 */"/>
    <method name="public native static boolean closingDown()" doc="/**
&lt;p&gt;Returns true if the application objects are being destroyed; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#startingUp()&quot;&gt;&lt;tt&gt;startingUp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static int exec()" doc="/**
&lt;p&gt;Enters the main event loop and waits until &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; is called. Returns the value that was set to &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; (which is 0 if &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; is called via &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.&lt;/p&gt;
&lt;p&gt;To make your application perform idle processing (i.e&amp;#x2e; executing a special function whenever there are no pending events), use a &lt;a href=&quot;QTimer.html&quot;&gt;&lt;tt&gt;QTimer&lt;/tt&gt;&lt;/a&gt; with 0 timeout. More advanced idle processing schemes can be achieved using &lt;a href=&quot;QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags, int)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags, int)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::exec&lt;/tt&gt; */"/>
    <method name="public native static void exit(int retcode)" doc="/**
&lt;p&gt;Tells the application to exit with a return code.&lt;/p&gt;
&lt;p&gt;After this function has been called, the application leaves the main event loop and returns from the call to &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; function returns &lt;tt&gt;retcode&lt;/tt&gt;. If the event loop is not running, this function does nothing.&lt;/p&gt;
&lt;p&gt;By convention, a &lt;tt&gt;retcode&lt;/tt&gt; of 0 means success, and any non-zero value indicates an error.&lt;/p&gt;
&lt;p&gt;Note that unlike the C library function of the same name, this function &lt;i&gt;does&lt;/i&gt; return to the caller -- it is event processing that stops.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void exit()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;exit&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public native static void flush()" doc="/**
&lt;p&gt;Flushes the platform specific event queues.&lt;/p&gt;
&lt;p&gt;If you are doing graphical changes inside a loop that does not return to the event loop on asynchronous window systems like X11 or double buffered window systems like Mac OS X, and you want to visualize these changes immediately (e.g&amp;#x2e; Splash Screens), call this function.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#sendPostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;sendPostedEvents&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean hasPendingEvents()" doc="/**
&lt;p&gt;This function returns true if there are pending events; otherwise returns false. Pending events can be either from the window system or posted events using &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QAbstractEventDispatcher::hasPendingEvents&lt;/tt&gt; */"/>
    <method name="public static void installTranslator(com.trolltech.qt.core.QTranslator messageFile)" doc="/**
&lt;p&gt;Adds the translation file &lt;tt&gt;messageFile&lt;/tt&gt; to the list of translation files to be used for translations.&lt;/p&gt;
&lt;p&gt;Multiple translation files can be installed. Translations are searched for in the last installed translation file on, back to the first installed translation file. The search stops as soon as a matching translation is found.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#removeTranslator(com.trolltech.qt.core.QTranslator)&quot;&gt;&lt;tt&gt;removeTranslator&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;translate&lt;/tt&gt;
@see &lt;tt&gt;QTranslator::load&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QCoreApplication instance()" doc="/**
&lt;p&gt;Returns a pointer to the application's &lt;a href=&quot;QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; (or &lt;a href=&quot;%2E%2E/gui/QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;) instance.&lt;/p&gt;
 */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; libraryPaths()" doc="/**
&lt;p&gt;Returns a list of paths that the application will search when dynamically loading libraries.&lt;/p&gt;
&lt;p&gt;Qt provides default library paths, but they can also be set using a &lt;a href=&quot;%2E%2E/qt-conf.html&quot;&gt;qt.conf&lt;/tt&gt;&lt;/a&gt; file. Paths specified in this file will override default values.&lt;/p&gt;
&lt;p&gt;This list will include the installation directory for plugins if it exists (the default installation directory for plugins is &lt;tt&gt;INSTALL/plugins&lt;/tt&gt;, where &lt;tt&gt;INSTALL&lt;/tt&gt; is the directory where Qt was installed). The directory of the application executable (NOT the working directory) is always added, as well as the colon separated entries of the QT_PLUGIN_PATH environment variable.&lt;/p&gt;
&lt;p&gt;If you want to iterate over the list, you can use the foreach&lt;/tt&gt; pseudo-keyword:&lt;/p&gt;
&lt;pre&gt;    foreach (QString path, app.libraryPaths())
        do_something(path);&lt;/pre&gt;

@see &lt;a href=&quot;QCoreApplication.html#setLibraryPaths(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setLibraryPaths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#addLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;addLibraryPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#removeLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;removeLibraryPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLibrary&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/plugins-howto.html&quot;&gt;How to Create Qt Plugins&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String organizationDomain()" doc="/**
&lt;p&gt;Returns the Internet domain of the organization that wrote this application.&lt;/p&gt;
&lt;p&gt;The value is used by the &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; class when it is constructed using the empty constructor. This saves having to repeat this information each time a &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; object is created.&lt;/p&gt;
&lt;p&gt;On Mac, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt; as the organization if it's not an empty string; otherwise it uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;. On all other platforms, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt; as the organization.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#setOrganizationDomain(java.lang.String)&quot;&gt;&lt;tt&gt;setOrganizationDomain&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#applicationName()&quot;&gt;&lt;tt&gt;applicationName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String organizationName()" doc="/**
&lt;p&gt;Returns the name of the organization that wrote this application.&lt;/p&gt;
&lt;p&gt;The value is used by the &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; class when it is constructed using the empty constructor. This saves having to repeat this information each time a &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; object is created.&lt;/p&gt;
&lt;p&gt;On Mac, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt; as the organization if it's not an empty string; otherwise it uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;. On all other platforms, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt; as the organization.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#setOrganizationName(java.lang.String)&quot;&gt;&lt;tt&gt;setOrganizationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#applicationName()&quot;&gt;&lt;tt&gt;applicationName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void postEvent(com.trolltech.qt.core.QObject receiver, com.trolltech.qt.core.QEvent event, int priority)" doc="/**
&lt;p&gt;Adds the event &lt;tt&gt;event&lt;/tt&gt;, with the object &lt;tt&gt;receiver&lt;/tt&gt; as the receiver of the event, to an event queue and returns immediately.&lt;/p&gt;
&lt;p&gt;The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted. It is &lt;i&gt;not safe&lt;/i&gt; to modify or delete the event after it has been posted.&lt;/p&gt;
&lt;p&gt;When control returns to the main event loop, all events that are stored in the queue will be sent using the &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Events are sorted in descending &lt;tt&gt;priority&lt;/tt&gt; order, i.e&amp;#x2e; events with a high &lt;tt&gt;priority&lt;/tt&gt; are queued before events with a lower &lt;tt&gt;priority&lt;/tt&gt;. The &lt;tt&gt;priority&lt;/tt&gt; can be any integer value, i.e&amp;#x2e; between INT_MAX and INT_MIN, inclusive; see Qt::EventPriority for more details. Events with equal &lt;tt&gt;priority&lt;/tt&gt; will be processed in the order posted.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#sendEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#sendPostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;sendPostedEvents&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::EventPriority&lt;/tt&gt; */"/>
    <method name="public static void postEvent(com.trolltech.qt.core.QObject receiver, com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;Adds the event &lt;tt&gt;event&lt;/tt&gt;, with the object &lt;tt&gt;receiver&lt;/tt&gt; as the receiver of the event, to an event queue and returns immediately.&lt;/p&gt;
&lt;p&gt;The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted. It is &lt;i&gt;not safe&lt;/i&gt; to modify or delete the event after it has been posted.&lt;/p&gt;
&lt;p&gt;When control returns to the main event loop, all events that are stored in the queue will be sent using the &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Events are processed in the order posted. For more control over the processing order, use the &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt; overload below, which takes a priority argument. This function posts all event with a Qt::NormalEventPriority.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#sendEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;sendEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#sendPostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;sendPostedEvents&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags flags)" doc="/**
&lt;p&gt;Processes all pending events for the calling thread according to the specified &lt;tt&gt;flags&lt;/tt&gt; until there are no more events to process.&lt;/p&gt;
&lt;p&gt;You can call this function occasionally when your program is busy performing a long operation (e.g&amp;#x2e; copying a file).&lt;/p&gt;
&lt;p&gt;In event you are running a local loop which calls this function continuously, without an event loop, the DeferredDelete events will not be processed. This can affect the behaviour of widgets, e.g&amp;#x2e; &lt;a href=&quot;%2E%2E/gui/QToolTip.html&quot;&gt;&lt;tt&gt;QToolTip&lt;/tt&gt;&lt;/a&gt;, that rely on DeferredDelete events to function properly. An alternative would be to call sendPostedEvents() from within that local loop.&lt;/p&gt;
&lt;p&gt;Calling this function processes events only for the calling thread.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTimer.html&quot;&gt;&lt;tt&gt;QTimer&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QEventLoop::processEvents&lt;/tt&gt;
@see &lt;a href=&quot;QCoreApplication.html#flush()&quot;&gt;&lt;tt&gt;flush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#sendPostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;sendPostedEvents&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void processEvents()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags, int)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;(QEventLoop::AllEvents). */"/>
    <method name="public static void processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags flags, int maxtime)" doc="/**
&lt;p&gt;Processes pending events for the calling thread for &lt;tt&gt;maxtime&lt;/tt&gt; milliseconds or until there are no more events to process, whichever is shorter.&lt;/p&gt;
&lt;p&gt;You can call this function occasionally when you program is busy doing a long operation (e.g&amp;#x2e; copying a file).&lt;/p&gt;
&lt;p&gt;Calling this function processes events only for the calling thread.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTimer.html&quot;&gt;&lt;tt&gt;QTimer&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QEventLoop::processEvents&lt;/tt&gt; */"/>
    <method name="public native static void quit()" doc="/**
&lt;p&gt;Tells the application to exit with return code 0 (success). Equivalent to calling QCoreApplication::exit(0).&lt;/p&gt;
&lt;p&gt;It's common to connect the QApplication::lastWindowClosed() signal to &lt;a href=&quot;QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;, and you also often connect e.g&amp;#x2e; QAbstractButton::clicked() or signals in &lt;a href=&quot;%2E%2E/gui/QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/gui/QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;%2E%2E/gui/QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt; to it.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QPushButton *quitButton = new QPushButton(&amp;quot;Quit&amp;quot;);
    connect(quitButton, SIGNAL(clicked()), &amp;amp;app, SLOT(quit()));&lt;/pre&gt;

@see &lt;a href=&quot;QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#aboutToQuit()&quot;&gt;&lt;tt&gt;aboutToQuit&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::lastWindowClosed&lt;/tt&gt; */"/>
    <method name="public native static void removeLibraryPath(java.lang.String arg__1)" doc="/**
&lt;p&gt;Removes &lt;tt&gt;arg__1&lt;/tt&gt; from the library path list. If &lt;tt&gt;arg__1&lt;/tt&gt; is empty or not in the path list, the list is not changed.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#addLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;addLibraryPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#libraryPaths()&quot;&gt;&lt;tt&gt;libraryPaths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#setLibraryPaths(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setLibraryPaths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void removePostedEvents(com.trolltech.qt.core.QObject receiver)" doc="/**
&lt;p&gt;Removes all events posted using &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt; for &lt;tt&gt;receiver&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The events are &lt;i&gt;not&lt;/i&gt; dispatched, instead they are removed from the queue. You should never need to call this function. If you do call it, be aware that killing events may cause &lt;tt&gt;receiver&lt;/tt&gt; to break one or more invariants.&lt;/p&gt;
 */"/>
    <method name="public static void removePostedEvents(com.trolltech.qt.core.QObject receiver, int eventType)" doc="/**
&lt;p&gt;Removes all events of the given &lt;tt&gt;eventType&lt;/tt&gt; that were posted using &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt; for &lt;tt&gt;receiver&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The events are &lt;i&gt;not&lt;/i&gt; dispatched, instead they are removed from the queue. You should never need to call this function. If you do call it, be aware that killing events may cause &lt;tt&gt;receiver&lt;/tt&gt; to break one or more invariants.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;receiver&lt;/tt&gt; is null, the events of &lt;tt&gt;eventType&lt;/tt&gt; are removed for all objects. If &lt;tt&gt;eventType&lt;/tt&gt; is 0, all the events are removed for &lt;tt&gt;receiver&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public static void removeTranslator(com.trolltech.qt.core.QTranslator messageFile)" doc="/**
&lt;p&gt;Removes the translation file &lt;tt&gt;messageFile&lt;/tt&gt; from the list of translation files used by this application. (It does not delete the translation file from the file system.)&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#installTranslator(com.trolltech.qt.core.QTranslator)&quot;&gt;&lt;tt&gt;installTranslator&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;translate&lt;/tt&gt;
@see &lt;tt&gt;QObject::tr&lt;/tt&gt; */"/>
    <method name="public static boolean sendEvent(com.trolltech.qt.core.QObject receiver, com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;Sends event &lt;tt&gt;event&lt;/tt&gt; directly to receiver &lt;tt&gt;receiver&lt;/tt&gt;, using the &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt; function. Returns the value that was returned from the event handler.&lt;/p&gt;
&lt;p&gt;The event is &lt;i&gt;not&lt;/i&gt; deleted when the event has been sent. The normal approach is to create the event on the stack, for example:&lt;/p&gt;
&lt;pre&gt;    QMouseEvent event(QEvent::MouseButtonPress, pos, 0, 0, 0);
    QApplication::sendEvent(mainWindow, &amp;amp;event);&lt;/pre&gt;

@see &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void sendPostedEvents()" doc="/**
&lt;p&gt;Dispatches all posted events, i.e&amp;#x2e; empties the event queue.&lt;/p&gt;
 */"/>
    <method name="public static void sendPostedEvents(com.trolltech.qt.core.QObject receiver, int event_type)" doc="/**
&lt;p&gt;Immediately dispatches all events which have been previously queued with QCoreApplication::postEvent() and which are for the object &lt;tt&gt;receiver&lt;/tt&gt; and have the event type &lt;tt&gt;event_type&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that events from the window system are &lt;i&gt;not&lt;/i&gt; dispatched by this function, but by &lt;a href=&quot;QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags, int)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;receiver&lt;/tt&gt; is null, the events of &lt;tt&gt;event_type&lt;/tt&gt; are sent for all objects. If &lt;tt&gt;event_type&lt;/tt&gt; is 0, all the events are sent for &lt;tt&gt;receiver&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#flush()&quot;&gt;&lt;tt&gt;flush&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setApplicationName(java.lang.String application)" doc="/**
&lt;p&gt;Sets the name of this application to &lt;tt&gt;application&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The value is used by the &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; class when it is constructed using the empty constructor. This saves having to repeat this information each time a &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; object is created.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#applicationName()&quot;&gt;&lt;tt&gt;applicationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setAttribute(com.trolltech.qt.core.Qt.ApplicationAttribute attribute, boolean on)" doc="/**
&lt;p&gt;Sets the attribute &lt;tt&gt;attribute&lt;/tt&gt; if &lt;tt&gt;on&lt;/tt&gt; is true; otherwise clears the attribute.&lt;/p&gt;
&lt;p&gt;One of the attributes that can be set with this method is Qt::AA_ImmediateWidgetCreation. It tells Qt to create toplevel windows immediately. Normally, resources for widgets are allocated on demand to improve efficiency and minimize resource usage. Therefore, if it is important to minimize resource consumption, do not set this attribute.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#testAttribute(com.trolltech.qt.core.Qt.ApplicationAttribute)&quot;&gt;&lt;tt&gt;testAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setAttribute(com.trolltech.qt.core.Qt.ApplicationAttribute attribute)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QCoreApplication.html#setAttribute(com.trolltech.qt.core.Qt.ApplicationAttribute, boolean)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;attribute&lt;/tt&gt;, true). */"/>
    <method name="public native static void setLibraryPaths(java.util.List&lt;java.lang.String&gt; arg__1)" doc="/**
&lt;p&gt;Sets the list of directories to search when loading libraries to &lt;tt&gt;arg__1&lt;/tt&gt;. All existing paths will be deleted and the path list will consist of the paths given in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#libraryPaths()&quot;&gt;&lt;tt&gt;libraryPaths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#addLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;addLibraryPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#removeLibraryPath(java.lang.String)&quot;&gt;&lt;tt&gt;removeLibraryPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLibrary&lt;/tt&gt; */"/>
    <method name="public native static void setOrganizationDomain(java.lang.String orgDomain)" doc="/**
&lt;p&gt;Sets the Internet domain of the organization that wrote this application to &lt;tt&gt;orgDomain&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The value is used by the &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; class when it is constructed using the empty constructor. This saves having to repeat this information each time a &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; object is created.&lt;/p&gt;
&lt;p&gt;On Mac, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt; as the organization if it's not an empty string; otherwise it uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;. On all other platforms, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt; as the organization.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#applicationName()&quot;&gt;&lt;tt&gt;applicationName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setOrganizationName(java.lang.String orgName)" doc="/**
&lt;p&gt;Sets the name of the organization that wrote this application to &lt;tt&gt;orgName&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The value is used by the &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; class when it is constructed using the empty constructor. This saves having to repeat this information each time a &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; object is created.&lt;/p&gt;
&lt;p&gt;On Mac, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt; as the organization if it's not an empty string; otherwise it uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;. On all other platforms, &lt;a href=&quot;QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; uses &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt; as the organization.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#organizationName()&quot;&gt;&lt;tt&gt;organizationName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#organizationDomain()&quot;&gt;&lt;tt&gt;organizationDomain&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCoreApplication.html#applicationName()&quot;&gt;&lt;tt&gt;applicationName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean startingUp()" doc="/**
&lt;p&gt;Returns true if an application object has not been created yet; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#closingDown()&quot;&gt;&lt;tt&gt;closingDown&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static boolean testAttribute(com.trolltech.qt.core.Qt.ApplicationAttribute attribute)" doc="/**
&lt;p&gt;Returns true if attribute &lt;tt&gt;attribute&lt;/tt&gt; is set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QCoreApplication.html#setAttribute(com.trolltech.qt.core.Qt.ApplicationAttribute, boolean)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Encoding" doc="/**
&lt;p&gt;This enum type defines the 8-bit encoding of character string arguments to translate():&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CodecForTr&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The encoding specified by QTextCodec::codecForTr() (Latin-1 if none has been set).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;UnicodeUTF8&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;UTF-8.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;DefaultCodec&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;(Obsolete) Use &lt;a href=&quot;QCoreApplication.html#Encoding-enum&quot;&gt;&lt;tt&gt;CodecForTr&lt;/tt&gt;&lt;/a&gt; instead.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;tt&gt;QObject::tr&lt;/tt&gt;
@see &lt;tt&gt;QObject::trUtf8&lt;/tt&gt;
@see &lt;tt&gt;QString::fromUtf8&lt;/tt&gt; */">
        <enum-value name="CodecForTr" doc="/**
&lt;p&gt;The encoding specified by QTextCodec::codecForTr() (Latin-1 if none has been set).&lt;/p&gt;
 */"/>
        <enum-value name="UnicodeUTF8" doc="/**
&lt;p&gt;UTF-8.&lt;/p&gt;
 */"/>
        <enum-value name="DefaultCodec" doc="/**
&lt;p&gt;(Obsolete) Use &lt;a href=&quot;QCoreApplication.html#Encoding-enum&quot;&gt;&lt;tt&gt;CodecForTr&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
 */"/>
</enum>
</class>
