diff options
Diffstat (limited to 'examples/fonts/simple-qfont-demo/simple-qfont-demo.cpp')
-rw-r--r-- | examples/fonts/simple-qfont-demo/simple-qfont-demo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/fonts/simple-qfont-demo/simple-qfont-demo.cpp b/examples/fonts/simple-qfont-demo/simple-qfont-demo.cpp new file mode 100644 index 0000000..a217ee8 --- /dev/null +++ b/examples/fonts/simple-qfont-demo/simple-qfont-demo.cpp @@ -0,0 +1,14 @@ + +#include "viewer.h" + +#include <qapplication.h> + +int main( int argc, char **argv ) +{ + QApplication app( argc, argv ); + Viewer * textViewer = new Viewer(); + textViewer->setCaption( "Qt Example - Simple QFont Demo" ); + app.setMainWidget( textViewer ); + textViewer->show(); + return app.exec(); +} |