Compatibility Members for QApplication
The following class members are part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
| QApplication(int & argc, char ** argv, bool GUIenabled, int _internal = ApplicationFlags) |
Static Public Members
Member Function Documentation
QApplication::QApplication(int & argc, char ** argv, bool GUIenabled, int _internal = ApplicationFlags)
Constructs an application object with argc command line arguments in argv.
Warning: The data referred to by argc and argv must stay valid for the entire lifetime of the QApplication object. In addition, argc must be greater than zero and argv must contain at least one valid character string.
The following example shows how to create an application that uses a graphical interface when available.
int main(int argc, char **argv)
{
#ifdef Q_WS_X11
bool useGUI = getenv("DISPLAY") != 0;
#else
bool useGUI = true;
#endif
QApplication app(argc, argv, useGUI);
if (useGUI) {
...
} else {
...
}
return app.exec();
}
Qt::LayoutDirection QApplication::keyboardInputDirection() [static]
QLocale QApplication::keyboardInputLocale() [static]
Returns the current keyboard input locale. Replaced with QInputMethod::locale()
This function was introduced in Qt 4.2.
void QApplication::setGraphicsSystem(const QString &) [static]