Advertisement
AVINASHommi

hello

Nov 14th, 2012
1,152
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <qapplication.h>
  2. #include <qpushbutton.h>
  3.  
  4.  
  5. int main( int argc, char **argv )
  6. {
  7.     QApplication a( argc, argv );
  8.  
  9.     QPushButton hello( "Hello world!", 0 );
  10.     hello.resize( 100, 30 );
  11.  
  12.     a.setMainWidget( &hello );
  13.     hello.show();
  14.    void  myQtApp::quit(){ // SLOT
  15.    
  16.     rws_process -> close();
  17.     process1 -> close();
  18.     process2 -> close();
  19.     exit(0);
  20. }
  21. }
Advertisement
RAW Paste Data Copied
Advertisement