| Last change
 on this file since 184 was             2, checked in by dmik, 20 years ago | 
        
          | 
Imported xplatform parts of the official release 3.3.1 from Trolltech
 | 
        
          | 
              
Property                 svn:keywords
 set to                 Id | 
        
          | File size:
            447 bytes | 
      
      
| Line |  | 
|---|
| 1 | /**************************************************************** | 
|---|
| 2 | ** | 
|---|
| 3 | ** Qt tutorial 1 | 
|---|
| 4 | ** | 
|---|
| 5 | ****************************************************************/ | 
|---|
| 6 |  | 
|---|
| 7 | #include <qapplication.h> | 
|---|
| 8 | #include <qpushbutton.h> | 
|---|
| 9 |  | 
|---|
| 10 |  | 
|---|
| 11 | int main( int argc, char **argv ) | 
|---|
| 12 | { | 
|---|
| 13 | QApplication a( argc, argv ); | 
|---|
| 14 |  | 
|---|
| 15 | QPushButton hello( "Hello world!", 0 ); | 
|---|
| 16 | hello.resize( 100, 30 ); | 
|---|
| 17 |  | 
|---|
| 18 | a.setMainWidget( &hello ); | 
|---|
| 19 | hello.show(); | 
|---|
| 20 | return a.exec(); | 
|---|
| 21 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.