source:
trunk/examples/qfd/qfd.cpp@
157
| Last change on this file since 157 was 2, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 847 bytes | |
| Line | |
|---|---|
| 1 | /**************************************************************************** |
| 2 | ** $Id: qfd.cpp 2 2005-11-16 15:49:26Z dmik $ |
| 3 | ** |
| 4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. |
| 5 | ** |
| 6 | ** This file is part of an example program for Qt. This example |
| 7 | ** program may be used, distributed and modified without limitation. |
| 8 | ** |
| 9 | *****************************************************************************/ |
| 10 | |
| 11 | #include "fontdisplayer.h" |
| 12 | |
| 13 | #include <qapplication.h> |
| 14 | #include <qslider.h> |
| 15 | #include <qpainter.h> |
| 16 | #include <qstatusbar.h> |
| 17 | |
| 18 | |
| 19 | |
| 20 | int main(int argc, char** argv) |
| 21 | { |
| 22 | QApplication app(argc,argv); |
| 23 | |
| 24 | FontDisplayer m; |
| 25 | QSize sh = m.centralWidget()->sizeHint(); |
| 26 | m.resize(sh.width(), |
| 27 | sh.height()+3*m.statusBar()->height()); |
| 28 | app.setMainWidget(&m); |
| 29 | m.setCaption("Qt Example - QFD"); |
| 30 | m.show(); |
| 31 | |
| 32 | return app.exec(); |
| 33 | } |
Note:
See TracBrowser
for help on using the repository browser.
