Obsolete Members for QApplication

The following members of class QApplication are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Properties

Static Public Members

(obsolete) Qt::LayoutDirection keyboardInputDirection()
(obsolete) QLocale keyboardInputLocale()
(obsolete) bool keypadNavigationEnabled()
(obsolete) void setGraphicsSystem(const QString &)
(obsolete) void setKeypadNavigationEnabled(bool enable)

Property Documentation

autoMaximizeThreshold : int

This property defines a threshold for auto maximizing widgets The auto maximize threshold is only available as part of Qt for Windows CE.

This property defines a threshold for the size of a window as a percentage of the screen size. If the minimum size hint of a window exceeds the threshold, calling show() will cause the window to be maximized automatically.

Setting the threshold to 100 or greater means that the widget will always be maximized. Alternatively, setting the threshold to 50 means that the widget will be maximized only if the vertical minimum size hint is at least 50% of the vertical screen size.

Setting the threshold to -1 disables the feature.

On Windows CE the default is -1 (i.e., it is disabled). On Windows Mobile the default is 40.

This property was introduced in Qt 4.4.

Access functions:

int autoMaximizeThreshold() const
void setAutoMaximizeThreshold(const int threshold)

Member Function Documentation

[static] Qt::LayoutDirection QApplication::keyboardInputDirection()

Returns the current keyboard input direction. Replaced with QInputMethod::inputDirection()

This function was introduced in Qt 4.2.

See also QInputMethod::inputDirection().

[static] QLocale QApplication::keyboardInputLocale()

Returns the current keyboard input locale. Replaced with QInputMethod::locale()

This function was introduced in Qt 4.2.

[static] bool QApplication::keypadNavigationEnabled()

Returns true if Qt is set to use keypad navigation; otherwise returns false. The default value is false.

This feature is available in Qt for Embedded Linux, and Windows CE only.

Note: On Windows CE this feature is disabled by default for touch device mkspecs. To enable keypad navigation, build Qt with QT_KEYPAD_NAVIGATION defined.

See also setKeypadNavigationEnabled() and navigationMode().

[static] void QApplication::setGraphicsSystem(const QString &)

This call has no effect.

Use the QPA framework instead.

[static] void QApplication::setKeypadNavigationEnabled(bool enable)

Sets whether Qt should use focus navigation suitable for use with a minimal keypad.

This feature is available in Qt for Embedded Linux, and Windows CE only.

Note: On Windows CE this feature is disabled by default for touch device mkspecs. To enable keypad navigation, build Qt with QT_KEYPAD_NAVIGATION defined.

See also keypadNavigationEnabled() and setNavigationMode().