本文整理汇总了C++中MainWin::show方法的典型用法代码示例。如果您正苦于以下问题:C++ MainWin::show方法的具体用法?C++ MainWin::show怎么用?C++ MainWin::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainWin
的用法示例。
在下文中一共展示了MainWin::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWin w;
w.show();
return a.exec();
}
示例2: main
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
MainWin win;
win.show();
return app.exec();
}
示例3: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setStyle("plastique");
MainWin fenetre;
fenetre.show();
return app.exec();
}
示例4: main
int main(int argc, char *argv[])
{
//setup application
QApplication app(argc, argv);
//execute app
//show Windows
MainWin *window;
window = new MainWin();
window->show();
return app.exec();
}
示例5: main
int main (int argc, char **argv)
{
QApplication a(argc, argv);
MainWin w;
w.resize(300,600);
w.show();
return a.exec();
}
示例6: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QApplication::setApplicationName("Redis Desktop Manager");
QApplication::setApplicationVersion("0.6.3-dev");
QApplication::setOrganizationDomain("redisdesktop.com");
MainWin w;
w.show();
return a.exec();
}
示例7: main
int main (int argc, char **argv)
{
QApplication a(argc, argv);
MainWin w;
#if QT_VERSION < 0x040000
a.setMainWidget(&w);
#endif
w.resize(300,600);
w.show();
return a.exec();
}
示例8: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
CrashHandler::instance()->Init(QDir::homePath());
QApplication::setApplicationName("Redis Desktop Manager");
QApplication::setApplicationVersion(RDM_VERSION);
QApplication::setOrganizationDomain("redisdesktop.com");
MainWin w;
w.show();
return a.exec();
}
示例9: main
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
MainWin win;
#ifdef _DEBUG
win.show();
#else
win.showMaximized();
#endif
return app.exec();
}
示例10: test_gui
// TODO: TestModels error. Why?
void TestEmanualCmd::test_gui()
{
int test_gui = 0;
if (test_gui){
int argc = 0;
char* argv[1] = {0};
QApplication app(argc, argv);
MainWin win;
win.show();
app.exec();
}
}
示例11: main
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
MainWin mainWin;
cout << "MothDB" << endl;
if(mainWin.init() != 0)
{
app.exit();
}
else
{
mainWin.showWidgets();
mainWin.show();
return app.exec();
}
}
示例12: app
int
main( int argc, char **argv )
{
qInstallMsgHandler( myMessageOutput );
QApplication app( argc, argv );
MainWin mainWin;
QStringList unknown;
// very simple parsing (tm)
for (int i=1; i<argc; ++i)
{
if (QString(argv[i]) == "--debug")
{
mainWin.setConsoleLogging( true );
}
else if (QString(argv[i]) == "--print")
{
mainWin.setConsoleOutput( true );
}
else if (QString(argv[i]) == "--help" || QString(argv[i]) == "-?")
{
printHelp();
}
else unknown += argv[i];
}
if (unknown.size()) {
std::cerr << "Unknown command line options:" << std::endl;
for (int i=0; i<unknown.size(); ++i) {
std::cerr << " " << unknown[i].latin1() << std::endl;
}
printHelp();
}
app.setMainWidget( &mainWin );
mainWin.show();
mainWin.move( 100, 100 );
return app.exec();
}
示例13: main
int main(int argc, char *argv[])
{
/* At least on Linux, we have to initialize SDL video subsystem prior to
* creating/initializing QApplication, otherwise we'll segfault miserably
* in SDL_CreateWindow(). Here's a stack trace if you're interested:
Thread [7] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)
13 XCreateIC()
12 SetupWindowData()
11 X11_CreateWindow()
10 SDL_CreateWindow()
..
*/
if ( SDL_InitSubSystem(SDL_INIT_VIDEO) < 0 ) {
printf("Unable to init SDL: %s\n", SDL_GetError());
return 1;
}
QApplication app(argc, argv);
MainWin win;
win.show();
if (!win.initStack()) {
win.quit();
return 1;
}
/* We want to be registrar too! */
if (pjsua_get_pjsip_endpt()) {
pjsip_endpt_register_module(pjsua_get_pjsip_endpt(),
&mod_default_handler);
}
return app.exec();
}
示例14: app
int
main( int argc, char **argv )
{
qInstallMsgHandler( myMessageOutput );
QApplication app( argc, argv );
MainWin mainWin;
// very simple parsing (tm)
for (int i=0; i<argc; ++i)
{
if (QString(argv[i]) == "--console")
{
mainWin.setConsoleLogging( true );
break;
}
}
app.setMainWidget( &mainWin );
mainWin.show();
mainWin.move( 100, 100 );
return app.exec();
}
示例15: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setOrganizationName("btbn.de");
app.setOrganizationDomain("btbn.de");
app.setApplicationName("TwitchWatcher");
qsrand((uint)QTime::currentTime().msec());
try
{
MainWin win;
win.show();
return app.exec();
}
catch(const std::exception &e)
{
QMessageBox::critical(nullptr, "Exception occured!", e.what());
}
return -1;
}