source:
trunk/examples/aclock/main.cpp@
43
| Last change on this file since 43 was 2, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 850 bytes | |
| Line | |
|---|---|
| 1 | /**************************************************************************** |
| 2 | ** $Id: main.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 "aclock.h" |
| 12 | #include <qapplication.h> |
| 13 | |
| 14 | |
| 15 | int main( int argc, char **argv ) |
| 16 | { |
| 17 | QApplication a( argc, argv ); |
| 18 | AnalogClock *clock = new AnalogClock; |
| 19 | if ( argc == 2 && strcmp( argv[1], "-transparent" ) == 0 ) |
| 20 | clock->setAutoMask( TRUE ); |
| 21 | clock->resize( 100, 100 ); |
| 22 | a.setMainWidget( clock ); |
| 23 | clock->setCaption("Qt Example - Analog Clock"); |
| 24 | clock->show(); |
| 25 | int result = a.exec(); |
| 26 | delete clock; |
| 27 | return result; |
| 28 | } |
Note:
See TracBrowser
for help on using the repository browser.
