int main(int argc, char *argv[]) { QApplication a(argc, argv); Form w; w.show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication app(argc, argv); Form form; form.show(); return app.exec(); }
int main( int argc, char ** argv ) { QApplication a(argc, argv); Form f; f.show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication app(argc, argv); Form widget; widget.show(); return app.exec(); }
/** Show function pointer */ extern "C" MidpError form_show(MidpFrame* framePtr) { Form *f = (Form *)framePtr->widgetPtr; PlatformMScreen::getMScreen()->addChild(f); f->show(); return KNI_OK; }
Form & operator()(Args &&... args) const { Form* res = detail::bedrock::instance().rt_manager.create_form<Form>(std::forward<Args>(args)...); if (nullptr == res) throw nana::bad_window("form_loader.operator(): failed to create a window"); if (IsMakeVisible) res->show(); return *res; }
void wiztest() { #if 0 Form window; Box vbox(false); Box hbox(true); window.set_size(400,400); window.set_content(&hbox); //vbox.add(&hbox, false, false); Button b1; Button b2; Button b3; b1.set_text("Button1"); b2.set_text("Button2"); b3.set_text("Button3"); hbox.add(&b1, true, true); hbox.add(&b2, true, false); hbox.add(&b3, false, false); hbox.set_spacing(8); hbox.set_padding(12); window.show(); #else bec::GRTManager grtm; grtm.set_datadir("../../"); grtm.get_grt()->scan_metaclasses_in("../../res/grt"); grtm.get_grt()->end_loading_metaclasses(); WizardForm* wizard= new WizardForm(&grtm); Page2* page2= new Page2(wizard, grtm.get_grt()); wizard->add_page(page2); Page1* page1= new Page1(wizard); wizard->add_page(page1); ImportInputPage* import1= new ImportInputPage(wizard); wizard->add_page(import1); grt::DictRef values(grtm.get_grt()); wizard->run_modal(values); #endif }
int main( int argc, char** argv ) { QApplication app( argc, argv ); QApplication::setStyle(new QCleanlooksStyle); Form myForm; myForm.show(); return app.exec(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); // MainWindow w; // w.show(); Form f; f.setWindowFlags(Qt::FramelessWindowHint|Qt::WindowSystemMenuHint|Qt::WindowMinimizeButtonHint|Qt::WindowMaximizeButtonHint); f.show(); return a.exec(); }
void FenPrincipale::gestProjet () { creerConnection(); QDialog *dialogue; Form *dialog = new Form (dialogue); dialog->show(); }