54 for (
int i = 1;
i < argc; ++
i) {
61 int main(
int argc,
char* argv[])
65 if (qobject_cast<QApplication *>(
app.data())) {
83 int main(
int argc,
char *argv[])
85 QApplication::setColorSpec(QApplication::ManyColor);
124 int main(
int argc,
char *argv[])
135 if ((startPos - currentPos).manhattanLength() >=
144 if (
manager.allowsInteraction()) {
147 tr(
"My Application"),
148 tr(
"Save changes to document?"),
small capitals from c petite p scientific i
[1]
The QApplication class manages the GUI application's control flow and main settings.
static void setStyle(QStyle *)
static QWidget * widgetAt(const QPoint &p)
static QWidgetList topLevelWidgets()
int startDragDistance
the minimum distance required for a drag and drop operation to start.
static QWidgetList allWidgets()
int qstrcmp(const char *str1, const char *str2)
The QCoreApplication class provides an event loop for Qt applications without UI.
static void setDesktopSettingsAware(bool on)
static StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
The QScopedPointer class stores a pointer to a dynamically allocated object, and deletes it upon dest...
The QSessionManager class provides access to the session manager.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
static QStyle * create(const QString &)
MyMainWidget * mainWindow
MyMainWidget mySession(nullptr)
GLsizei const GLubyte * commands
[10]
GLint GLint GLint GLint GLint x
[0]
QApplication app(argc, argv)
[0]
QNetworkAccessManager manager
QStringList restartCommand()
QStringList discardCommand()