Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1919

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QApplication" doc="/**
&lt;p&gt;The &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; class manages the GUI application's control flow and main settings.&lt;/p&gt;
&lt;p&gt;It contains the main event loop, where all events from the window system and other sources are processed and dispatched. It also handles the application's initialization and finalization, and provides session management. It also handles most system-wide and application-wide settings.&lt;/p&gt;
&lt;p&gt;For any GUI application that uses Qt, there is precisely one &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object, no matter whether the application has 0, 1, 2 or more windows at any time. For non-GUI Qt applications, use &lt;a href=&quot;%2E%2E/core/QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt; instead, which doesn't depend on the &lt;tt&gt;QtGui&lt;/tt&gt; library.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object is accessible through the &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#instance()&quot;&gt;&lt;tt&gt;instance&lt;/tt&gt;&lt;/a&gt; function which return a pointer equivalent to the global qApp pointer.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;'s main areas of responsibility are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It initializes the application with the user's desktop settings such as &lt;a href=&quot;QApplication.html#palette(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;palette&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QApplication.html#doubleClickInterval()&quot;&gt;&lt;tt&gt;doubleClickInterval&lt;/tt&gt;&lt;/a&gt;. It keeps track of these properties in case the user changes the desktop globally, for example through some kind of control panel.&lt;/li&gt;
&lt;li&gt;It performs event handling, meaning that it receives events from the underlying window system and dispatches them to the relevant widgets. By using &lt;a href=&quot;%2E%2E/core/%2E%2E/core/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; and &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent, int)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt; you can send your own events to widgets.&lt;/li&gt;
&lt;li&gt;It parses common command line arguments and sets its internal state accordingly. See the constructor documentation&lt;/tt&gt; below for more details about this.&lt;/li&gt;
&lt;li&gt;It defines the application's look and feel, which is encapsulated in a &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; object. This can be changed at runtime with &lt;a href=&quot;QApplication.html#setStyle(java.lang.String)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;It specifies how the application is to allocate colors. See &lt;a href=&quot;QApplication.html#setColorSpec(int)&quot;&gt;&lt;tt&gt;setColorSpec&lt;/tt&gt;&lt;/a&gt; for details.&lt;/li&gt;
&lt;li&gt;It provides localization of strings that are visible to the user via translate().&lt;/li&gt;
&lt;li&gt;It provides some magical objects like the &lt;a href=&quot;QApplication.html#desktop()&quot;&gt;&lt;tt&gt;desktop&lt;/tt&gt;&lt;/a&gt; and the &lt;a href=&quot;QApplication.html#clipboard()&quot;&gt;&lt;tt&gt;clipboard&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;It knows about the application's windows. You can ask which widget is at a certain position using &lt;a href=&quot;QApplication.html#widgetAt(int, int)&quot;&gt;&lt;tt&gt;widgetAt&lt;/tt&gt;&lt;/a&gt;, get a list of &lt;a href=&quot;QApplication.html#topLevelWidgets()&quot;&gt;&lt;tt&gt;topLevelWidgets&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QApplication.html#closeAllWindows()&quot;&gt;&lt;tt&gt;closeAllWindows&lt;/tt&gt;&lt;/a&gt;, etc.&lt;/li&gt;
&lt;li&gt;It manages the application's mouse cursor handling, see &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;On the X window system, it provides functions to flush and sync the communication stream, see flushX() and &lt;a href=&quot;QApplication.html#syncX()&quot;&gt;&lt;tt&gt;syncX&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;It provides support for sophisticated &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session management&lt;/tt&gt;&lt;/a&gt;. This makes it possible for applications to terminate gracefully when the user logs out, to cancel a shutdown process if termination isn't possible and even to preserve the entire application's state for a future session. See &lt;a href=&quot;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; for details.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since the &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object does so much initialization, it &lt;i&gt;must&lt;/i&gt; be created before any other objects related to the user interface are created.&lt;/p&gt;
&lt;p&gt;Since it also deals with common command line arguments, it is usually a good idea to create it &lt;i&gt;before&lt;/i&gt; any interpretation or modification of &lt;tt&gt;argv&lt;/tt&gt; is done in the application itself.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th colspan=&quot;2&quot;&gt;Groups of functions&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;System settings&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#desktopSettingsAware()&quot;&gt;&lt;tt&gt;desktopSettingsAware&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setDesktopSettingsAware(boolean)&quot;&gt;&lt;tt&gt;setDesktopSettingsAware&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#cursorFlashTime()&quot;&gt;&lt;tt&gt;cursorFlashTime&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setCursorFlashTime(int)&quot;&gt;&lt;tt&gt;setCursorFlashTime&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#doubleClickInterval()&quot;&gt;&lt;tt&gt;doubleClickInterval&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setDoubleClickInterval(int)&quot;&gt;&lt;tt&gt;setDoubleClickInterval&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setKeyboardInputInterval(int)&quot;&gt;&lt;tt&gt;setKeyboardInputInterval&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#wheelScrollLines()&quot;&gt;&lt;tt&gt;wheelScrollLines&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setWheelScrollLines(int)&quot;&gt;&lt;tt&gt;setWheelScrollLines&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#palette(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;palette&lt;/tt&gt;&lt;/a&gt;, setPalette(), &lt;a href=&quot;QApplication.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;, setFont(), &lt;a href=&quot;QApplication.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Event handling&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;%2E%2E/core/%2E%2E/core/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;%2E%2E/core/%2E%2E/core/QCoreApplication.html#postEvent(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent, int)&quot;&gt;&lt;tt&gt;postEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#sendPostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;sendPostedEvents&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#removePostedEvents(com.trolltech.qt.core.QObject, int)&quot;&gt;&lt;tt&gt;removePostedEvents&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#hasPendingEvents()&quot;&gt;&lt;tt&gt;hasPendingEvents&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#notify(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;notify&lt;/tt&gt;&lt;/a&gt;, macEventFilter(), qwsEventFilter(), x11EventFilter(), x11ProcessEvent(), winEventFilter().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;GUI Styles&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setStyle(java.lang.String)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Color usage&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#colorSpec()&quot;&gt;&lt;tt&gt;colorSpec&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#setColorSpec(int)&quot;&gt;&lt;tt&gt;setColorSpec&lt;/tt&gt;&lt;/a&gt;, qwsSetCustomColors().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Text handling&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#installTranslator(com.trolltech.qt.core.QTranslator)&quot;&gt;&lt;tt&gt;installTranslator&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#removeTranslator(com.trolltech.qt.core.QTranslator)&quot;&gt;&lt;tt&gt;removeTranslator&lt;/tt&gt;&lt;/a&gt; translate().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Widgets&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#allWidgets()&quot;&gt;&lt;tt&gt;allWidgets&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#topLevelWidgets()&quot;&gt;&lt;tt&gt;topLevelWidgets&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#desktop()&quot;&gt;&lt;tt&gt;desktop&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#activePopupWidget()&quot;&gt;&lt;tt&gt;activePopupWidget&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#activeModalWidget()&quot;&gt;&lt;tt&gt;activeModalWidget&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#clipboard()&quot;&gt;&lt;tt&gt;clipboard&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#focusWidget()&quot;&gt;&lt;tt&gt;focusWidget&lt;/tt&gt;&lt;/a&gt;, winFocus(), &lt;a href=&quot;QApplication.html#activeWindow()&quot;&gt;&lt;tt&gt;activeWindow&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#widgetAt(int, int)&quot;&gt;&lt;tt&gt;widgetAt&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Advanced cursor handling&lt;/td&gt;&lt;td&gt;overrideCursor(), &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;X Window System synchronization&lt;/td&gt;&lt;td&gt;flushX(), &lt;a href=&quot;QApplication.html#syncX()&quot;&gt;&lt;tt&gt;syncX&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Session management&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Miscellaneous&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QApplication.html#closeAllWindows()&quot;&gt;&lt;tt&gt;closeAllWindows&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#startingUp()&quot;&gt;&lt;tt&gt;startingUp&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#closingDown()&quot;&gt;&lt;tt&gt;closingDown&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/QCoreApplication.html&quot;&gt;&lt;tt&gt;QCoreApplication&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QAbstractEventDispatcher.html&quot;&gt;&lt;tt&gt;QAbstractEventDispatcher&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QEventLoop.html&quot;&gt;&lt;tt&gt;QEventLoop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&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;%2E%2E/core/%2E%2E/core/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;%2E%2E/core/%2E%2E/core/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 commitDataRequest(com.trolltech.qt.gui.QSessionManager sessionManager)" doc="/**
&lt;p&gt;This signal deals with &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session management&lt;/tt&gt;&lt;/a&gt;. It is emitted when the &lt;a href=&quot;QSessionManager.html&quot;&gt;&lt;tt&gt;QSessionManager&lt;/tt&gt;&lt;/a&gt; wants the application to commit all its data.&lt;/p&gt;
&lt;p&gt;Usually this means saving all open files, after getting permission from the user. Furthermore you may want to provide a means by which the user can cancel the shutdown.&lt;/p&gt;
&lt;p&gt;Note that you should not exit the application when called. Instead, the session manager may or may not do this afterwards, depending on the context.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Within this signal, no user interaction is possible, &lt;i&gt;unless&lt;/i&gt; you ask the &lt;tt&gt;sessionManager&lt;/tt&gt; for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details and example usage.&lt;/p&gt;
&lt;p&gt;Note: You should use Qt::DirectConnection when connecting to this signal.&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(com.trolltech.qt.gui.QSessionManager sessionManager)&lt;/tt&gt;&lt;/dd&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;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/session.html&quot;&gt;Session Management&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void focusChanged(com.trolltech.qt.gui.QWidget old, com.trolltech.qt.gui.QWidget now)" doc="/**
&lt;p&gt;This signal is emitted when the widget that has keyboard focus changed from &lt;tt&gt;old&lt;/tt&gt; to &lt;tt&gt;now&lt;/tt&gt;, i.e&amp;#x2e; because the user pressed the tab-key, clicked into a widget or changed the active window. Note that both &lt;tt&gt;old&lt;/tt&gt; and &lt;tt&gt;now&lt;/tt&gt; can be the null-pointer.&lt;/p&gt;
&lt;p&gt;The signal is emitted after both widget have been notified about the change through &lt;a href=&quot;QFocusEvent.html&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&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(com.trolltech.qt.gui.QWidget old, com.trolltech.qt.gui.QWidget now)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QWidget old)&lt;/tt&gt;&lt;/dd&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;tt&gt;QWidget::setFocus&lt;/tt&gt;, &lt;tt&gt;QWidget::clearFocus&lt;/tt&gt;, &lt;tt&gt;Qt::FocusReason&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void lastWindowClosed()" doc="/**
&lt;p&gt;This signal is emitted from QApplication::exec() when the last visible primary window (i.e&amp;#x2e; window with no parent) with the Qt::WA_QuitOnClose attribute set is closed.&lt;/p&gt;
&lt;p&gt;By default,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;this attribute is set for all widgets except transient windows such as splash screens, tool windows, and popup menus&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; implicitly quits when this signal is emitted.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This feature be turned off by setting &lt;a href=&quot;QApplication.html#quitOnLastWindowClosed()&quot;&gt;&lt;tt&gt;quitOnLastWindowClosed&lt;/tt&gt;&lt;/a&gt; to false.&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;tt&gt;QWidget::close&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void saveStateRequest(com.trolltech.qt.gui.QSessionManager sessionManager)" doc="/**
&lt;p&gt;This signal deals with &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session management&lt;/tt&gt;&lt;/a&gt;. It is invoked when the &lt;a href=&quot;QSessionManager.html&quot;&gt;session manager&lt;/tt&gt;&lt;/a&gt; wants the application to preserve its state for a future session.&lt;/p&gt;
&lt;p&gt;For example, a text editor would create a temporary file that includes the current contents of its edit buffers, the location of the cursor and other aspects of the current editing session.&lt;/p&gt;
&lt;p&gt;Note that you should never exit the application within this signal. Instead, the session manager may or may not do this afterwards, depending on the context. Futhermore, most session managers will very likely request a saved state immediately after the application has been started. This permits the session manager to learn about the application's restart policy.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Within this function, no user interaction is possible, &lt;i&gt;unless&lt;/i&gt; you ask the &lt;tt&gt;sessionManager&lt;/tt&gt; for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details.&lt;/p&gt;
&lt;p&gt;Note:: You should use Qt::DirectConnection when connecting to this signal.&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(com.trolltech.qt.gui.QSessionManager sessionManager)&lt;/tt&gt;&lt;/dd&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;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/session.html&quot;&gt;Session Management&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;This method is used internally by Qt Jambi.
Do not use it in your applications.&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 final com.trolltech.qt.gui.QInputContext inputContext()" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QInputContext.html&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; instance used by the application.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setInputContext(com.trolltech.qt.gui.QInputContext)&quot;&gt;&lt;tt&gt;setInputContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isSessionRestored()" doc="/**
&lt;p&gt;Returns true if the application has been restored from an earlier &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String sessionId()" doc="/**
&lt;p&gt;Returns the current &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session's&lt;/tt&gt;&lt;/a&gt; identifier.&lt;/p&gt;
&lt;p&gt;If the application has been restored from an earlier session, this identifier is the same as it was in that previous session.&lt;/p&gt;
&lt;p&gt;The session identifier is guaranteed to be unique both for different applications and for different instances of the same application.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#sessionKey()&quot;&gt;&lt;tt&gt;sessionKey&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String sessionKey()" doc="/**
&lt;p&gt;Returns the session key in the current &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the application has been restored from an earlier session, this key is the same as it was when the previous session ended.&lt;/p&gt;
&lt;p&gt;The session key changes with every call of &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setInputContext(com.trolltech.qt.gui.QInputContext arg__1)" doc="/**
&lt;p&gt;This function replaces the &lt;a href=&quot;QInputContext.html&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; instance used by the application with &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#inputContext()&quot;&gt;&lt;tt&gt;inputContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStyleSheet(java.lang.String sheet)" doc="/**
&lt;p&gt;Sets the application style sheet to &lt;tt&gt;sheet&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#styleSheet()&quot;&gt;&lt;tt&gt;styleSheet&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setStyle&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String styleSheet()" doc="/**
&lt;p&gt;Returns the application style sheet.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setStyleSheet(java.lang.String)&quot;&gt;&lt;tt&gt;setStyleSheet&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setStyle&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void commitData(com.trolltech.qt.gui.QSessionManager sm)" doc="/**
&lt;p&gt;This function deals with &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session management&lt;/tt&gt;&lt;/a&gt;. It is invoked when the &lt;a href=&quot;QSessionManager.html&quot;&gt;&lt;tt&gt;QSessionManager&lt;/tt&gt;&lt;/a&gt; wants the application to commit all its data.&lt;/p&gt;
&lt;p&gt;Usually this means saving all open files, after getting permission from the user. Furthermore you may want to provide a means by which the user can cancel the shutdown.&lt;/p&gt;
&lt;p&gt;Note that you should not exit the application within this function. Instead, the session manager may or may not do this afterwards, depending on the context.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Within this function, no user interaction is possible, &lt;i&gt;unless&lt;/i&gt; you ask the &lt;tt&gt;sm&lt;/tt&gt; for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details and example usage.&lt;/p&gt;
&lt;p&gt;The default implementation requests interaction and sends a close event to all visible top-level widgets. If any event was rejected, the shutdown is canceled.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#saveState(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/session.html&quot;&gt;Session Management&lt;/tt&gt;&lt;/a&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;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void saveState(com.trolltech.qt.gui.QSessionManager sm)" doc="/**
&lt;p&gt;This function deals with &lt;a href=&quot;%2E%2E/session.html&quot;&gt;session management&lt;/tt&gt;&lt;/a&gt;. It is invoked when the &lt;a href=&quot;QSessionManager.html&quot;&gt;session manager&lt;/tt&gt;&lt;/a&gt; wants the application to preserve its state for a future session.&lt;/p&gt;
&lt;p&gt;For example, a text editor would create a temporary file that includes the current contents of its edit buffers, the location of the cursor and other aspects of the current editing session.&lt;/p&gt;
&lt;p&gt;Note that you should never exit the application within this function. Instead, the session manager may or may not do this afterwards, depending on the context. Futhermore, most session managers will very likely request a saved state immediately after the application has been started. This permits the session manager to learn about the application's restart policy.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Within this function, no user interaction is possible, &lt;i&gt;unless&lt;/i&gt; you ask the &lt;tt&gt;sm&lt;/tt&gt; for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#isSessionRestored()&quot;&gt;&lt;tt&gt;isSessionRestored&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#sessionId()&quot;&gt;&lt;tt&gt;sessionId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#commitData(com.trolltech.qt.gui.QSessionManager)&quot;&gt;&lt;tt&gt;commitData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/session.html&quot;&gt;Session Management&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void aboutQt()" doc="/**
&lt;p&gt;Displays a simple message box about Qt. The message includes the version number of Qt being used by the application.&lt;/p&gt;
&lt;p&gt;This is useful for inclusion in the &lt;b&gt;Help&lt;/b&gt; menu of an application, as shown in the Menus&lt;/tt&gt; example.&lt;/p&gt;
&lt;p&gt;This function is a convenience slot for QMessageBox::aboutQt().&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget activeModalWidget()" doc="/**
&lt;p&gt;Returns the active modal widget.&lt;/p&gt;
&lt;p&gt;A modal widget is a special top-level widget which is a subclass of &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; that specifies the modal parameter of the constructor as true. A modal widget must be closed before the user can continue with other parts of the program.&lt;/p&gt;
&lt;p&gt;Modal widgets are organized in a stack. This function returns the active modal widget at the top of the stack.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#activePopupWidget()&quot;&gt;&lt;tt&gt;activePopupWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#topLevelWidgets()&quot;&gt;&lt;tt&gt;topLevelWidgets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget activePopupWidget()" doc="/**
&lt;p&gt;Returns the active popup widget.&lt;/p&gt;
&lt;p&gt;A popup widget is a special top-level widget that sets the &lt;tt&gt;Qt::WType_Popup&lt;/tt&gt; widget flag, e.g&amp;#x2e; the &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt; widget. When the application opens a popup widget, all events are sent to the popup. Normal widgets and modal widgets cannot be accessed before the popup widget is closed.&lt;/p&gt;
&lt;p&gt;Only other popup widgets may be opened when a popup widget is shown. The popup widgets are organized in a stack. This function returns the active popup widget at the top of the stack.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#activeModalWidget()&quot;&gt;&lt;tt&gt;activeModalWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#topLevelWidgets()&quot;&gt;&lt;tt&gt;topLevelWidgets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget activeWindow()" doc="/**
&lt;p&gt;Returns the application top-level window that has the keyboard input focus, or 0 if no application window has the focus. Note that there might be an &lt;a href=&quot;QApplication.html#activeWindow()&quot;&gt;&lt;tt&gt;activeWindow&lt;/tt&gt;&lt;/a&gt; even if there is no &lt;a href=&quot;QApplication.html#focusWidget()&quot;&gt;&lt;tt&gt;focusWidget&lt;/tt&gt;&lt;/a&gt;, for example if no widget in that window accepts key events.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setActiveWindow(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setActiveWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setFocus&lt;/tt&gt;
@see &lt;tt&gt;QWidget::hasFocus&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#focusWidget()&quot;&gt;&lt;tt&gt;focusWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void alert(com.trolltech.qt.gui.QWidget widget, int duration)" doc="/**
&lt;p&gt;Causes an alert to be shown for &lt;tt&gt;widget&lt;/tt&gt; if the window is not the active window. The alert is shown for &lt;tt&gt;duration&lt;/tt&gt; miliseconds. If &lt;tt&gt;duration&lt;/tt&gt; is zero (the default), then the alert is shown indefinitely until the window becomes active again.&lt;/p&gt;
&lt;p&gt;Currently this function does nothing on Qtopia Core.&lt;/p&gt;
&lt;p&gt;On Mac OS X, this works more at the application level and will cause the application icon to bounce in the dock.&lt;/p&gt;
&lt;p&gt;On Windows this causes the window's taskbar entry to flash for a time. If &lt;tt&gt;duration&lt;/tt&gt; is zero, the flashing will stop and the taskbar entry will turn a different color (currently orange).&lt;/p&gt;
&lt;p&gt;On X11, this will cause the window to be marked as &amp;quot;demands attention&amp;quot;, the window must not be hidden (i.e&amp;#x2e; not have hide() called on it, but be visible in some sort of way) in order for this to work.&lt;/p&gt;
 */"/>
    <method name="public static void alert(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QApplication.html#alert(com.trolltech.qt.gui.QWidget, int)&quot;&gt;alert&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;widget&lt;/tt&gt;, 0). */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.gui.QWidget&gt; allWidgets()" doc="/**
&lt;p&gt;Returns a list of all the widgets in the application.&lt;/p&gt;
&lt;p&gt;The list is empty (QList::isEmpty()) if there are no widgets.&lt;/p&gt;
&lt;p&gt;Note that some of the widgets may be hidden.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    void updateAllWidgets()
    {
        foreach (QWidget *widget, QApplication::allWidgets())
            widget-&amp;gt;update();
    }&lt;/pre&gt;

@see &lt;a href=&quot;QApplication.html#topLevelWidgets()&quot;&gt;&lt;tt&gt;topLevelWidgets&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::isVisible&lt;/tt&gt; */"/>
    <method name="public native static void beep()" doc="/**
&lt;p&gt;Sounds the bell, using the default volume and sound. The function is &lt;i&gt;not&lt;/i&gt; available in Qtopia Core.&lt;/p&gt;
 */"/>
    <method name="public static void changeOverrideCursor(com.trolltech.qt.gui.QCursor arg__1)" doc="/**
&lt;p&gt;Changes the currently active application override cursor to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function has no effect if &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt; wasn't called.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;overrideCursor&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setCursor&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QClipboard clipboard()" doc="/**
&lt;p&gt;Returns a pointer to the application global clipboard.&lt;/p&gt;
 */"/>
    <method name="public native static void closeAllWindows()" doc="/**
&lt;p&gt;Closes all top-level windows.&lt;/p&gt;
&lt;p&gt;This function is particularly useful for applications with many top-level windows. It could, for example, be connected to a &lt;b&gt;Exit&lt;/b&gt; entry in the &lt;b&gt;File&lt;/b&gt; menu:&lt;/p&gt;
&lt;pre&gt;        exitAct = new QAction(tr(&amp;quot;E&amp;amp;xit&amp;quot;), this);
        exitAct-&amp;gt;setShortcut(tr(&amp;quot;Ctrl+Q&amp;quot;));
        exitAct-&amp;gt;setStatusTip(tr(&amp;quot;Exit the application&amp;quot;));
        connect(exitAct, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));&lt;/pre&gt;
&lt;p&gt;The windows are closed in random order, until one window does not accept the close event. The application quits when the last window was successfully closed; this can be turned off by setting &lt;a href=&quot;QApplication.html#quitOnLastWindowClosed()&quot;&gt;&lt;tt&gt;quitOnLastWindowClosed&lt;/tt&gt;&lt;/a&gt; to false.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#quitOnLastWindowClosed()&quot;&gt;&lt;tt&gt;quitOnLastWindowClosed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#lastWindowClosed()&quot;&gt;&lt;tt&gt;lastWindowClosed&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::close&lt;/tt&gt;
@see &lt;tt&gt;QWidget::closeEvent&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#lastWindowClosed()&quot;&gt;&lt;tt&gt;lastWindowClosed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#topLevelWidgets()&quot;&gt;&lt;tt&gt;topLevelWidgets&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::isWindow&lt;/tt&gt; */"/>
    <method name="public native static int colorSpec()" doc="/**
&lt;p&gt;Returns the color specification.&lt;/p&gt;

@see &lt;tt&gt;QApplication::setColorSpec&lt;/tt&gt; */"/>
    <method name="public native static int cursorFlashTime()" doc="/**
&lt;p&gt;Returns the text cursor's flash (blink) time in milliseconds.&lt;/p&gt;
&lt;p&gt;The flash time is the time required to display, invert and restore the caret display. Usually the text cursor is displayed for half the cursor flash time, then hidden for the same amount of time, but this may vary.&lt;/p&gt;
&lt;p&gt;The default value on X11 is 1000 milliseconds. On Windows, the control panel value is used. Widgets should not cache this value since it may be changed at any time by the user changing the global desktop settings.&lt;/p&gt;
&lt;p&gt;Note that on Microsoft Windows, setting this property sets the cursor flash time for all applications.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setCursorFlashTime(int)&quot;&gt;&lt;tt&gt;setCursorFlashTime&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QDesktopWidget desktop()" doc="/**
&lt;p&gt;Returns the desktop widget (also called the root window).&lt;/p&gt;
&lt;p&gt;Note that the desktop may be composed of multiple screens, so it would be incorrect, for example, to attempt to &lt;i&gt;center&lt;/i&gt; some widget in the desktop's geometry. &lt;a href=&quot;QDesktopWidget.html&quot;&gt;&lt;tt&gt;QDesktopWidget&lt;/tt&gt;&lt;/a&gt; has various functions for obtaining useful geometries upon the desktop, such as QDesktopWidget::screenGeometry() and QDesktopWidget::availableGeometry().&lt;/p&gt;
&lt;p&gt;On X11, it is also possible to draw on the desktop.&lt;/p&gt;
 */"/>
    <method name="public native static boolean desktopSettingsAware()" doc="/**
&lt;p&gt;Returns true if Qt is set to use the system's standard colors, fonts, etc.; otherwise returns false. The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setDesktopSettingsAware(boolean)&quot;&gt;&lt;tt&gt;setDesktopSettingsAware&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static int doubleClickInterval()" doc="/**
&lt;p&gt;Returns the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks.&lt;/p&gt;
&lt;p&gt;The default value on X11 is 400 milliseconds. On Windows and Mac OS X, the operating system's value is used.&lt;/p&gt;
&lt;p&gt;On Microsoft Windows, calling this function sets the double click interval for all applications.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setDoubleClickInterval(int)&quot;&gt;&lt;tt&gt;setDoubleClickInterval&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;%2E%2E/core/%2E%2E/core/QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; is called or the main widget is destroyed, and returns the value that was set to &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; (which is 0 if &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt; is called via &lt;a href=&quot;%2E%2E/core/%2E%2E/core/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;Generally speaking, no user interaction can take place before calling &lt;a href=&quot;QApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;. As a special case, modal widgets like &lt;a href=&quot;QMessageBox.html&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt; can be used before calling &lt;a href=&quot;QApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt;, because modal widgets call &lt;a href=&quot;QApplication.html#exec()&quot;&gt;&lt;tt&gt;exec&lt;/tt&gt;&lt;/a&gt; to start a local event loop.&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;%2E%2E/core/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;%2E%2E/core/%2E%2E/core/QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#quitOnLastWindowClosed()&quot;&gt;&lt;tt&gt;quitOnLastWindowClosed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#exit(int)&quot;&gt;&lt;tt&gt;exit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#processEvents(com.trolltech.qt.core.QEventLoop.ProcessEventsFlags)&quot;&gt;&lt;tt&gt;processEvents&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QCoreApplication::exec&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget focusWidget()" doc="/**
&lt;p&gt;Returns the application widget that has the keyboard input focus, or 0 if no widget in this application has the focus.&lt;/p&gt;

@see &lt;tt&gt;QWidget::setFocus&lt;/tt&gt;
@see &lt;tt&gt;QWidget::hasFocus&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#activeWindow()&quot;&gt;&lt;tt&gt;activeWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#focusChanged(com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;focusChanged&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QFont font(com.trolltech.qt.gui.QWidget arg__1)" doc="/**
&lt;p&gt;Returns the default font for the &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setFont&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the default application font.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::font&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QFontMetrics fontMetrics()" doc="/**
&lt;p&gt;Returns display (screen) font metrics for the application font.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;setFont&lt;/tt&gt;
@see &lt;tt&gt;QWidget::fontMetrics&lt;/tt&gt;
@see &lt;tt&gt;QPainter::fontMetrics&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QSize globalStrut()" doc="/**
&lt;p&gt;Returns the minimum size that any GUI element that the user can interact with should have.&lt;/p&gt;
&lt;p&gt;For example no button should be resized to be smaller than the global strut size. The strut size should be considered when reimplementing GUI controls that may be used on touch-screens or similar I/O devices.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QSize MyWidget::sizeHint() const
    {
        return QSize(80, 25).expandedTo(QApplication::globalStrut());
    }&lt;/pre&gt;

@see &lt;a href=&quot;QApplication.html#setGlobalStrut(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setGlobalStrut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static boolean isEffectEnabled(com.trolltech.qt.core.Qt.UIEffect arg__1)" doc="/**
&lt;p&gt;Returns true if &lt;tt&gt;arg__1&lt;/tt&gt; is enabled; otherwise returns false.&lt;/p&gt;
&lt;p&gt;By default, Qt will try to use the desktop settings. Call &lt;a href=&quot;QApplication.html#setDesktopSettingsAware(boolean)&quot;&gt;&lt;tt&gt;setDesktopSettingsAware&lt;/tt&gt;&lt;/a&gt;(false) to prevent this.&lt;/p&gt;
&lt;p&gt;Note: All effects are disabled on screens running at less than 16-bit color depth.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setEffectEnabled(com.trolltech.qt.core.Qt.UIEffect, boolean)&quot;&gt;&lt;tt&gt;setEffectEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::UIEffect&lt;/tt&gt; */"/>
    <method name="public native static boolean isLeftToRight()" doc="/**
&lt;p&gt;Returns true if the application's layout direction is Qt::LeftToRight; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#layoutDirection()&quot;&gt;&lt;tt&gt;layoutDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#isRightToLeft()&quot;&gt;&lt;tt&gt;isRightToLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean isRightToLeft()" doc="/**
&lt;p&gt;Returns true if the application's layout direction is Qt::RightToLeft; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#layoutDirection()&quot;&gt;&lt;tt&gt;layoutDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#isLeftToRight()&quot;&gt;&lt;tt&gt;isLeftToRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.Qt.LayoutDirection keyboardInputDirection()" doc="/**
&lt;p&gt;Returns the current keyboard input direction.&lt;/p&gt;
 */"/>
    <method name="public native static int keyboardInputInterval()" doc="/**
&lt;p&gt;Returns the time limit in milliseconds that distinguishes a key press from two consecutive key presses.&lt;/p&gt;
&lt;p&gt;The default value on X11 is 400 milliseconds. On Windows and Mac OS X, the operating system's value is used.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setKeyboardInputInterval(int)&quot;&gt;&lt;tt&gt;setKeyboardInputInterval&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QLocale keyboardInputLocale()" doc="/**
&lt;p&gt;Returns the current keyboard input locale.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.Qt.KeyboardModifiers keyboardModifiers()" doc="/**
&lt;p&gt;Returns the current state of the modifier keys on the keyboard. The current state is updated sychronously as the event queue is emptied of events that will spontaneously change the keyboard state (QEvent::KeyPress and QEvent::KeyRelease events).&lt;/p&gt;
&lt;p&gt;It should be noted this may not reflect the actual keys held on the input device at the time of calling but rather the modifiers as last reported in one of the above events. If no keys are being held Qt::NoModifier is returned.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#mouseButtons()&quot;&gt;&lt;tt&gt;mouseButtons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.Qt.LayoutDirection layoutDirection()" doc="/**
&lt;p&gt;Returns the default layout direction for this application.&lt;/p&gt;
&lt;p&gt;On system start-up, the default layout direction depends on the application's language.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection)&quot;&gt;&lt;tt&gt;setLayoutDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::layoutDirection&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#isLeftToRight()&quot;&gt;&lt;tt&gt;isLeftToRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#isRightToLeft()&quot;&gt;&lt;tt&gt;isRightToLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.Qt.MouseButtons mouseButtons()" doc="/**
&lt;p&gt;Returns the current state of the buttons on the mouse. The current state is updated syncronously as the event queue is emptied of events that will spontaneously change the mouse state (QEvent::MousePress and QEvent::MouseRelease events).&lt;/p&gt;
&lt;p&gt;It should be noted this may not reflect the actual buttons held on theinput device at the time of calling but rather the mouse buttons as last reported in one of the above events. If no mouse buttons are being held Qt::NoButton is returned.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#keyboardModifiers()&quot;&gt;&lt;tt&gt;keyboardModifiers&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QPalette palette()" doc="/**
&lt;p&gt;Returns the application palette.&lt;/p&gt;

@see &lt;tt&gt;setPalette&lt;/tt&gt;
@see &lt;tt&gt;QWidget::palette&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QPalette palette(com.trolltech.qt.gui.QWidget arg__1)" doc="/**
&lt;p&gt;If a &lt;tt&gt;arg__1&lt;/tt&gt; is passed, the default palette for the widget's class is returned. This may or may not be the application palette. In most cases there isn't a special palette for certain types of widgets, but one notable exception is the popup menu under Windows, if the user has defined a special background color for menus in the display settings.&lt;/p&gt;

@see &lt;tt&gt;setPalette&lt;/tt&gt;
@see &lt;tt&gt;QWidget::palette&lt;/tt&gt; */"/>
    <method name="public native static boolean quitOnLastWindowClosed()" doc="/**
&lt;p&gt;Returns whether the application implicitly quits when the last window is closed..&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;
&lt;p&gt;If this property is true, the applications quits when the last visible primary window (i.e&amp;#x2e; window with no parent) with the Qt::WA_QuitOnClose attribute set is closed. By default this attribute is set for all widgets except transient windows such as splash screens, tool windows, and popup menus.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setQuitOnLastWindowClosed(boolean)&quot;&gt;&lt;tt&gt;setQuitOnLastWindowClosed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::close&lt;/tt&gt; */"/>
    <method name="public native static void restoreOverrideCursor()" doc="/**
&lt;p&gt;Undoes the last &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt; has been called twice, calling &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt; will activate the first cursor set. Calling this function a second time restores the original widgets' cursors.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;overrideCursor&lt;/tt&gt; */"/>
    <method name="public static void setActiveWindow(com.trolltech.qt.gui.QWidget act)" doc="/**
&lt;p&gt;Sets the active window to the &lt;tt&gt;act&lt;/tt&gt; widget in response to a system event. The function is called from the platform specific event handlers.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function does &lt;i&gt;not&lt;/i&gt; set the keyboard focus to the active widget. Call QWidget::activateWindow() instead.&lt;/p&gt;
&lt;p&gt;It sets the &lt;a href=&quot;QApplication.html#activeWindow()&quot;&gt;&lt;tt&gt;activeWindow&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QApplication.html#focusWidget()&quot;&gt;&lt;tt&gt;focusWidget&lt;/tt&gt;&lt;/a&gt; attributes and sends proper WindowActivate/WindowDeactivate and FocusIn/FocusOut events to all appropriate widgets. The window will then be painted in active state (e.g&amp;#x2e; cursors in line edits will blink), and it will have tool tips enabled.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#activeWindow()&quot;&gt;&lt;tt&gt;activeWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::activateWindow&lt;/tt&gt; */"/>
    <method name="public native static void setColorSpec(int arg__1)" doc="/**
&lt;p&gt;Sets the color specification for the application to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The color specification controls how the application allocates colors when run on a display with a limited amount of colors, e.g&amp;#x2e; 8 bit / 256 color displays.&lt;/p&gt;
&lt;p&gt;The color specification must be set before you create the &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;The options are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;QApplication::NormalColor. This is the default color allocation strategy. Use this option if your application uses buttons, menus, texts and pixmaps with few colors. With this option, the application uses system global colors. This works fine for most applications under X11, but on Windows machines it may cause dithering of non-standard colors.&lt;/li&gt;
&lt;li&gt;QApplication::CustomColor. Use this option if your application needs a small number of custom colors. On X11, this option is the same as &lt;a href=&quot;QApplication.html#ColorSpec-enum&quot;&gt;&lt;tt&gt;NormalColor&lt;/tt&gt;&lt;/a&gt;. On Windows, Qt creates a Windows palette, and allocates colors to it on demand.&lt;/li&gt;
&lt;li&gt;QApplication::ManyColor. Use this option if your application is very color hungry (e.g&amp;#x2e; it requires thousands of colors). Under X11 the effect is:&lt;ul&gt;
&lt;li&gt;For 256-color displays which have at best a 256 color true color visual, the default visual is used, and colors are allocated from a color cube. The color cube is the 6x6x6 (216 color) &amp;quot;Web palette&amp;quot; (the red, green, and blue components always have one of the following values: 0x00, 0x33, 0x66, 0x99, 0xCC, or 0xFF), but the number of colors can be changed by the &lt;i&gt;-ncols&lt;/i&gt; option. The user can force the application to use the true color visual with the -visual&lt;/tt&gt; option.&lt;/li&gt;
&lt;li&gt;For 256-color displays which have a true color visual with more than 256 colors, use that visual. Silicon Graphics X servers have this feature, for example. They provide an 8 bit visual by default but can deliver true color when asked.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On Windows, Qt creates a Windows palette, and fills it with a color cube.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Be aware that the &lt;a href=&quot;QApplication.html#ColorSpec-enum&quot;&gt;&lt;tt&gt;CustomColor&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QApplication.html#ColorSpec-enum&quot;&gt;&lt;tt&gt;ManyColor&lt;/tt&gt;&lt;/a&gt; choices may lead to colormap flashing: The foreground application gets (most) of the available colors, while the background windows will look less attractive.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    int main(int argc, char *argv[])
    {
        QApplication::setColorSpec(QApplication::ManyColor);
        QApplication app(argc, argv);
        ...
        return app.exec();
    }&lt;/pre&gt;

@see &lt;a href=&quot;QApplication.html#colorSpec()&quot;&gt;&lt;tt&gt;colorSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setCursorFlashTime(int arg__1)" doc="/**
&lt;p&gt;Sets the text cursor's flash (blink) time in milliseconds to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The flash time is the time required to display, invert and restore the caret display. Usually the text cursor is displayed for half the cursor flash time, then hidden for the same amount of time, but this may vary.&lt;/p&gt;
&lt;p&gt;The default value on X11 is 1000 milliseconds. On Windows, the control panel value is used. Widgets should not cache this value since it may be changed at any time by the user changing the global desktop settings.&lt;/p&gt;
&lt;p&gt;Note that on Microsoft Windows, setting this property sets the cursor flash time for all applications.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#cursorFlashTime()&quot;&gt;&lt;tt&gt;cursorFlashTime&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setDesktopSettingsAware(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether Qt should use the system's standard colors, fonts, etc., to &lt;tt&gt;arg__1&lt;/tt&gt;. By default, this is true.&lt;/p&gt;
&lt;p&gt;This function must be called before creating the &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object, like this:&lt;/p&gt;
&lt;pre&gt;    int main(int argc, char *argv[])
    {
        QApplication::setDesktopSettingsAware(false);
        QApplication app(argc, argv);
        ...
        return app.exec();
    }&lt;/pre&gt;

@see &lt;a href=&quot;QApplication.html#desktopSettingsAware()&quot;&gt;&lt;tt&gt;desktopSettingsAware&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setDoubleClickInterval(int arg__1)" doc="/**
&lt;p&gt;Sets the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value on X11 is 400 milliseconds. On Windows and Mac OS X, the operating system's value is used.&lt;/p&gt;
&lt;p&gt;On Microsoft Windows, calling this function sets the double click interval for all applications.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#doubleClickInterval()&quot;&gt;&lt;tt&gt;doubleClickInterval&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setEffectEnabled(com.trolltech.qt.core.Qt.UIEffect arg__1, boolean enable)" doc="/**
&lt;p&gt;Enables the UI effect &lt;tt&gt;arg__1&lt;/tt&gt; if &lt;tt&gt;enable&lt;/tt&gt; is true, otherwise the effect will not be used.&lt;/p&gt;
&lt;p&gt;Note: All effects are disabled on screens running at less than 16-bit color depth.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#isEffectEnabled(com.trolltech.qt.core.Qt.UIEffect)&quot;&gt;&lt;tt&gt;isEffectEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::UIEffect&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#setDesktopSettingsAware(boolean)&quot;&gt;&lt;tt&gt;setDesktopSettingsAware&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setEffectEnabled(com.trolltech.qt.core.Qt.UIEffect arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QApplication.html#setEffectEnabled(com.trolltech.qt.core.Qt.UIEffect, boolean)&quot;&gt;&lt;tt&gt;setEffectEnabled&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, true). */"/>
    <method name="public static void setGlobalStrut(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets the minimum size that any GUI element that the user can interact with should have to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For example no button should be resized to be smaller than the global strut size. The strut size should be considered when reimplementing GUI controls that may be used on touch-screens or similar I/O devices.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QSize MyWidget::sizeHint() const
    {
        return QSize(80, 25).expandedTo(QApplication::globalStrut());
    }&lt;/pre&gt;

@see &lt;a href=&quot;QApplication.html#globalStrut()&quot;&gt;&lt;tt&gt;globalStrut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setKeyboardInputInterval(int arg__1)" doc="/**
&lt;p&gt;Sets the time limit in milliseconds that distinguishes a key press from two consecutive key presses to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value on X11 is 400 milliseconds. On Windows and Mac OS X, the operating system's value is used.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#keyboardInputInterval()&quot;&gt;&lt;tt&gt;keyboardInputInterval&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection direction)" doc="/**
&lt;p&gt;Sets the default layout direction for this application to &lt;tt&gt;direction&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;On system start-up, the default layout direction depends on the application's language.&lt;/p&gt;

@see &lt;tt&gt;QWidget::layoutDirection&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#isLeftToRight()&quot;&gt;&lt;tt&gt;isLeftToRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#isRightToLeft()&quot;&gt;&lt;tt&gt;isRightToLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setOverrideCursor(com.trolltech.qt.gui.QCursor arg__1)" doc="/**
&lt;p&gt;Sets the application override cursor to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Application override cursors are intended for showing the user that the application is in a special state, for example during an operation that might take some time.&lt;/p&gt;
&lt;p&gt;This cursor will be displayed in all the application's widgets until &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt; or another &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;
&lt;p&gt;Application cursors are stored on an internal stack. &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt; pushes the cursor onto the stack, and &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt; pops the active cursor off the stack. &lt;a href=&quot;QApplication.html#changeOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;changeOverrideCursor&lt;/tt&gt;&lt;/a&gt; changes the curently active application override cursor. Every &lt;a href=&quot;QApplication.html#setOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setOverrideCursor&lt;/tt&gt;&lt;/a&gt; must eventually be followed by a corresponding &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt;, otherwise the stack will never be emptied.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
    calculateHugeMandelbrot();              &lt;span class=&quot;comment&quot;&gt;// lunch time...&lt;/span&gt;
    QApplication::restoreOverrideCursor();&lt;/pre&gt;

@see &lt;tt&gt;overrideCursor&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#restoreOverrideCursor()&quot;&gt;&lt;tt&gt;restoreOverrideCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#changeOverrideCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;changeOverrideCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setCursor&lt;/tt&gt; */"/>
    <method name="public native static void setQuitOnLastWindowClosed(boolean quit)" doc="/**
&lt;p&gt;Sets whether the application implicitly quits when the last window is closed. to &lt;tt&gt;quit&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;
&lt;p&gt;If this property is true, the applications quits when the last visible primary window (i.e&amp;#x2e; window with no parent) with the Qt::WA_QuitOnClose attribute set is closed. By default this attribute is set for all widgets except transient windows such as splash screens, tool windows, and popup menus.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#quitOnLastWindowClosed()&quot;&gt;&lt;tt&gt;quitOnLastWindowClosed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QCoreApplication.html#quit()&quot;&gt;&lt;tt&gt;quit&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::close&lt;/tt&gt; */"/>
    <method name="public native static void setStartDragDistance(int l)" doc="/**
&lt;p&gt;If you support drag and drop in your application, and want to start a drag and drop operation after the user has moved the cursor a certain distance with a button held down, you should use this property's value as the minimum distance required.&lt;/p&gt;
&lt;p&gt;For example, if the mouse position of the click is stored in &lt;tt&gt;startPos&lt;/tt&gt; and the current position (e.g&amp;#x2e; in the mouse move event) is &lt;tt&gt;currentPos&lt;/tt&gt;, you can find out if a drag should be started with code like this:&lt;/p&gt;
&lt;pre&gt;    if ((startPos - currentPos).manhattanLength() &amp;gt;=
            QApplication::startDragDistance())
        startTheDrag();&lt;/pre&gt;
&lt;p&gt;Qt uses this value internally, e.g&amp;#x2e; in &lt;a href=&quot;QFileDialog.html&quot;&gt;&lt;tt&gt;QFileDialog&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default value is 4 pixels.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#startDragDistance()&quot;&gt;&lt;tt&gt;startDragDistance&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#startDragTime()&quot;&gt;&lt;tt&gt;startDragTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPoint::manhattanLength&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setStartDragTime(int ms)" doc="/**
&lt;p&gt;Sets the time in milliseconds that a mouse button must be held down before a drag and drop operation will begin to &lt;tt&gt;ms&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If you support drag and drop in your application, and want to start a drag and drop operation after the user has held down a mouse button for a certain amount of time, you should use this property's value as the delay.&lt;/p&gt;
&lt;p&gt;Qt also uses this delay internally, e.g&amp;#x2e; in &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, for starting a drag.&lt;/p&gt;
&lt;p&gt;The default value is 500 ms.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#startDragTime()&quot;&gt;&lt;tt&gt;startDragTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#startDragDistance()&quot;&gt;&lt;tt&gt;startDragDistance&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setStyle(com.trolltech.qt.gui.QStyle arg__1)" doc="/**
&lt;p&gt;Sets the application's GUI style to &lt;tt&gt;arg__1&lt;/tt&gt;. Ownership of the style object is transferred to &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;, so &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; will delete the style object on application exit or when a new style is set.&lt;/p&gt;
&lt;p&gt;Example usage:&lt;/p&gt;
&lt;pre&gt;    QApplication::setStyle(new QWindowsStyle);&lt;/pre&gt;
&lt;p&gt;When switching application styles, the color palette is set back to the initial colors or the system defaults. This is necessary since certain styles have to adapt the color palette to be fully style-guide compliant.&lt;/p&gt;
&lt;p&gt;Note that setting the style before a palette has been set (i.e&amp;#x2e; before creating &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;) will cause the application to use QStyle::standardPalette() for the palette.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;setPalette&lt;/tt&gt;
@see &lt;a href=&quot;QApplication.html#desktopSettingsAware()&quot;&gt;&lt;tt&gt;desktopSettingsAware&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QStyle setStyle(java.lang.String arg__1)" doc="/**
&lt;p&gt;Requests a &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; object for &lt;tt&gt;arg__1&lt;/tt&gt; from the &lt;a href=&quot;QStyleFactory.html&quot;&gt;&lt;tt&gt;QStyleFactory&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The string must be one of the QStyleFactory::keys(), typically one of &amp;quot;windows&amp;quot;, &amp;quot;motif&amp;quot;, &amp;quot;cde&amp;quot;, &amp;quot;plastique&amp;quot;, &amp;quot;windowsxp&amp;quot;, or &amp;quot;macintosh&amp;quot;. Style names are case insensitive.&lt;/p&gt;
&lt;p&gt;Returns 0 if an unknown &lt;tt&gt;arg__1&lt;/tt&gt; is passed, otherwise the &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; object returned is set as the application's GUI style.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; To ensure that the application's style is set correctly, it is best to call this function before the &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; constructor, if possible.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setWheelScrollLines(int arg__1)" doc="/**
&lt;p&gt;Sets the number of lines to scroll when the mouse wheel is rotated to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this number exceeds the number of visible lines in a certain widget, the widget should interpret the scroll operation as a single &amp;quot;page up&amp;quot; or &amp;quot;page down&amp;quot; operation instead.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#wheelScrollLines()&quot;&gt;&lt;tt&gt;wheelScrollLines&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setWindowIcon(com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the default window icon to &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::setWindowIcon&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/appicon.html&quot;&gt;Setting the Application Icon&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static int startDragDistance()" doc="/**
&lt;p&gt;If you support drag and drop in your application, and want to start a drag and drop operation after the user has moved the cursor a certain distance with a button held down, you should use this property's value as the minimum distance required.&lt;/p&gt;
&lt;p&gt;For example, if the mouse position of the click is stored in &lt;tt&gt;startPos&lt;/tt&gt; and the current position (e.g&amp;#x2e; in the mouse move event) is &lt;tt&gt;currentPos&lt;/tt&gt;, you can find out if a drag should be started with code like this:&lt;/p&gt;
&lt;pre&gt;    if ((startPos - currentPos).manhattanLength() &amp;gt;=
            QApplication::startDragDistance())
        startTheDrag();&lt;/pre&gt;
&lt;p&gt;Qt uses this value internally, e.g&amp;#x2e; in &lt;a href=&quot;QFileDialog.html&quot;&gt;&lt;tt&gt;QFileDialog&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default value is 4 pixels.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setStartDragDistance(int)&quot;&gt;&lt;tt&gt;setStartDragDistance&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#startDragTime()&quot;&gt;&lt;tt&gt;startDragTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPoint::manhattanLength&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static int startDragTime()" doc="/**
&lt;p&gt;Returns the time in milliseconds that a mouse button must be held down before a drag and drop operation will begin.&lt;/p&gt;
&lt;p&gt;If you support drag and drop in your application, and want to start a drag and drop operation after the user has held down a mouse button for a certain amount of time, you should use this property's value as the delay.&lt;/p&gt;
&lt;p&gt;Qt also uses this delay internally, e.g&amp;#x2e; in &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, for starting a drag.&lt;/p&gt;
&lt;p&gt;The default value is 500 ms.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setStartDragTime(int)&quot;&gt;&lt;tt&gt;setStartDragTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QApplication.html#startDragDistance()&quot;&gt;&lt;tt&gt;startDragDistance&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QStyle style()" doc="/**
&lt;p&gt;Returns the application's style object.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setStyle(java.lang.String)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void syncX()" doc="/**
&lt;p&gt;Synchronizes with the X server in the X11 implementation. This normally takes some time. Does nothing on other platforms.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QWidget topLevelAt(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Returns the top-level widget at the given &lt;tt&gt;p&lt;/tt&gt;; returns 0 if there is no such widget.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget topLevelAt(int x, int y)" doc="/**
&lt;p&gt;Returns the top-level widget at the point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;); returns 0 if there is no such widget.&lt;/p&gt;
 */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.gui.QWidget&gt; topLevelWidgets()" doc="/**
&lt;p&gt;Returns a list of the top-level widgets (windows) in the application.&lt;/p&gt;
&lt;p&gt;Note that some of the top-level widgets may be hidden, for example a tooltip if no tooltip is currently shown.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    void showAllHiddenTopLevelWidgets()
    {
        foreach (QWidget *widget, QApplication::topLevelWidgets()) {
            if (widget-&amp;gt;isHidden())
                widget-&amp;gt;show();
        }
    }&lt;/pre&gt;

@see &lt;a href=&quot;QApplication.html#allWidgets()&quot;&gt;&lt;tt&gt;allWidgets&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::isWindow&lt;/tt&gt;
@see &lt;tt&gt;QWidget::isHidden&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QApplication.Type type()" doc="/**
&lt;p&gt;Returns the type of application (&lt;a href=&quot;QApplication.html#Type-enum&quot;&gt;Tty&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QApplication.html#Type-enum&quot;&gt;&lt;tt&gt;GuiClient&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QApplication.html#Type-enum&quot;&gt;&lt;tt&gt;GuiServer&lt;/tt&gt;&lt;/a&gt;). The type is set when constructing the &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <method name="public native static int wheelScrollLines()" doc="/**
&lt;p&gt;Returns the number of lines to scroll when the mouse wheel is rotated.&lt;/p&gt;
&lt;p&gt;If this number exceeds the number of visible lines in a certain widget, the widget should interpret the scroll operation as a single &amp;quot;page up&amp;quot; or &amp;quot;page down&amp;quot; operation instead.&lt;/p&gt;

@see &lt;a href=&quot;QApplication.html#setWheelScrollLines(int)&quot;&gt;&lt;tt&gt;setWheelScrollLines&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QWidget widgetAt(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Returns the widget at global screen position &lt;tt&gt;p&lt;/tt&gt;, or 0 if there is no Qt widget there.&lt;/p&gt;
&lt;p&gt;This function can be slow.&lt;/p&gt;

@see &lt;tt&gt;QCursor::pos&lt;/tt&gt;
@see &lt;tt&gt;QWidget::grabMouse&lt;/tt&gt;
@see &lt;tt&gt;QWidget::grabKeyboard&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget widgetAt(int x, int y)" doc="/**
&lt;p&gt;Returns the widget at global screen position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), or 0 if there is no Qt widget there.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.gui.QIcon windowIcon()" doc="/**
&lt;p&gt;Returns the default window icon.&lt;/p&gt;

@see &lt;tt&gt;QWidget::setWindowIcon&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/appicon.html&quot;&gt;Setting the Application Icon&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Type">
        <enum-value name="Tty" doc="/**
&lt;p&gt;a console application&lt;/p&gt;
 */"/>
        <enum-value name="GuiClient" doc="/**
&lt;p&gt;a GUI client application&lt;/p&gt;
 */"/>
        <enum-value name="GuiServer" doc="/**
&lt;p&gt;a GUI server application (for Qtopia Core)&lt;/p&gt;
 */"/>
</enum>
    <enum name="ColorSpec" doc="/**
&lt;p&gt;See &lt;a href=&quot;QApplication.html#setColorSpec(int)&quot;&gt;&lt;tt&gt;setColorSpec&lt;/tt&gt;&lt;/a&gt; for full details.&lt;/p&gt;
 */">
        <enum-value name="NormalColor" doc="/**
&lt;p&gt;the default color allocation policy&lt;/p&gt;
 */"/>
        <enum-value name="CustomColor" doc="/**
&lt;p&gt;the same as &lt;a href=&quot;QApplication.html#ColorSpec-enum&quot;&gt;&lt;tt&gt;NormalColor&lt;/tt&gt;&lt;/a&gt; for X11; allocates colors to a palette on demand under Windows&lt;/p&gt;
 */"/>
        <enum-value name="ManyColor" doc="/**
&lt;p&gt;the right choice for applications that use thousands of colors&lt;/p&gt;
 */"/>
</enum>
</class>