demos/deform/main.cpp File Reference

#include "pathdeform.h"
#include <QApplication>

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 28 of file main.cpp.

References QApplication::exec(), Q_INIT_RESOURCE, QWidget::setStyle(), QWidget::show(), and w.

00029 {
00030     Q_INIT_RESOURCE(deform);
00031 
00032     QApplication app(argc, argv);
00033 
00034     PathDeformWidget deformWidget(0);
00035     QStyle *arthurStyle = new ArthurStyle();
00036     deformWidget.setStyle(arthurStyle);
00037 
00038     QList<QWidget *> widgets = qFindChildren<QWidget *>(&deformWidget);
00039     foreach (QWidget *w, widgets)
00040         w->setStyle(arthurStyle);
00041     deformWidget.show();
00042 
00043     return app.exec();
00044 }

Here is the call graph for this function:


Generated on Thu Mar 15 13:56:29 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1