main.cpp Example File demos/pathstroke/main.cpp
#include "pathstroke.h"
#include <QApplication>
int main(int argc, char **argv)
{
Q_INIT_RESOURCE(pathstroke);
QApplication app(argc, argv);
bool smallScreen = false;
for (int i=0; i<argc; i++)
if (QString(argv[i]) == "-small-screen")
smallScreen = true;
PathStrokeWidget pathStrokeWidget(smallScreen);
QStyle *arthurStyle = new ArthurStyle();
pathStrokeWidget.setStyle(arthurStyle);
QList<QWidget *> widgets = qFindChildren<QWidget *>(&pathStrokeWidget);
foreach (QWidget *w, widgets)
w->setStyle(arthurStyle);
if (smallScreen)
pathStrokeWidget.showFullScreen();
else
pathStrokeWidget.show();
return app.exec();
}
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) |
Trademarks |
Qt 4.5.2 |
|