int main(){ MyForm fm; fm.ShowDialog(); return 0; }
int main(int argc, char *argv[]) { QApplication a(argc, argv); MyForm w; w.show(); return a.exec(); }
int main(int argc, char **argv) { QApplication app(argc, argv); mocFromCpp(); mocFromH(); MyForm mywidget; mywidget.testSlot(); printf("Hello World\n"); return 0; }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow) { WApp::storeMainArgs(hInstance,hPrevInstance,szCmdLine,iCmdShow ); WApp myapp; MyForm *form = new MyForm(); form->setBounds( 100,100,600,480);//left,top,width,height form->setText( TEXT("http://wudimei.com/") );//title form->setName( TEXT("MyForm1") );//the form name "LoginForm" is for global accessing form->create(); return myapp.run(); }
int main() { MyForm as; as.ShowDialog(); return 0; }