int main( int argc, char * argv[ ] ) { QApplication app( argc , argv ) ; MyWidget window ; window.setWindowTitle( QApplication::translate( "greyScales" , "grey scales demonstration" ) ) ; window.show( ) ; return app.exec( ) ; }
int main( int argc, char** argv ) { QApplication App( argc, argv ); MyWidget mw; mw.setWindowTitle( "Qt SFML" ); mw.resize( 400, 400 ); mw.show(); return App.exec(); }
int main(int argc, char *argv[]) { QTextCodec::setCodecForCStrings(QTextCodec::codecForName("windows-1251")); QApplication a(argc, argv); MyWidget w; w.resize(800,600); w.setMinimumSize(800,600); w.setWindowTitle("PC Helper ver. 1.0"); w.show(); w.setSizeIncrement(15, 15); return a.exec(); }
int main( int argc, char **argv ) { // if(argc==1){ // printf("\nUSAGE: Put 1 if you want to clean SHM Memory and Buffer - Put 0 if not \n"); // exit(1); // } //shm_del = atoi(argv[1]); // QIcon::QIcon ( const QString & fileName ) //const QIcon* UniBe = new QIcon("../LHEP_GUI-1.0/UniBe_logo.jpg"); printf("bigi"); QApplication a( argc, argv ); MyWidget buttonsgroups; buttonsgroups.resize( 500, 250 ); buttonsgroups.setWindowTitle("LHEP Argontube prototype DAQ - made by B. Rossi"); // buttonsgroups.setCaption( "LHEP Middle Argontube DAQ - made by B. Rossi" ); //QIcon ico= QIcon("lhep_logo.jpg"); buttonsgroups.setWindowIcon(QIcon("UniBe_logo.jpg")); //a.setWindowIcon("../LHEP_GUI-1.0/UniBe_logo.jpg"); buttonsgroups.show(); return a.exec(); }