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.
(obsolete) enum |
ColorSpec { NormalColor, CustomColor, ManyColor } |
(obsolete) int |
colorSpec() |
(obsolete) Qt::LayoutDirection |
keyboardInputDirection() |
(obsolete) QLocale |
keyboardInputLocale() |
(obsolete) bool |
keypadNavigationEnabled() |
(obsolete) void |
setColorSpec(int spec) |
(obsolete) void |
setGraphicsSystem(const QString &) |
(obsolete) void |
setKeypadNavigationEnabled(bool enable) |
Constant | Value | Description |
---|---|---|
QApplication::NormalColor |
0 |
the default color allocation policy |
QApplication::CustomColor |
1 |
the same as NormalColor for X11; allocates colors to a palette on demand under Windows |
QApplication::ManyColor |
2 |
the right choice for applications that use thousands of colors |
See setColorSpec() for full details.
[static]
int QApplication::colorSpec()Returns the color specification.
See also QApplication::setColorSpec().
[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::setColorSpec(int
spec)Sets the color specification for the application to spec.
This call has no effect.
The color specification controls how the application allocates colors when run on a display with a limited amount of colors, e.g. 8 bit / 256 color displays.
The color specification must be set before you create the QApplication object.
The options are:
On Windows, Qt creates a Windows palette, and fills it with a color cube.
Be aware that the CustomColor and ManyColor choices may lead to colormap flashing: The foreground application gets (most) of the available colors, while the background windows will look less attractive.
Example:
int main(int argc, char *argv[]) { QApplication::setColorSpec(QApplication::ManyColor); QApplication app(argc, argv); ... return app.exec(); }
See also colorSpec().
[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().