当前位置: 首页>>代码示例>>C++>>正文


C++ MainWin::show方法代码示例

本文整理汇总了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();
}
开发者ID:samuelohterion,项目名称:ShaderToyQt,代码行数:8,代码来源:main.cpp

示例2: main

int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    MainWin win;
    win.show();
    return app.exec();
}
开发者ID:diogodadalt,项目名称:Tetralath,代码行数:8,代码来源:main.cpp

示例3: main

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    app.setStyle("plastique");
 
    MainWin fenetre;
    fenetre.show();
 
    return app.exec();
}
开发者ID:Hybryd,项目名称:Ovobose,代码行数:10,代码来源:main_gui.cpp

示例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();
}
开发者ID:journalehsan,项目名称:CutePad,代码行数:11,代码来源:main.cpp

示例5: main

int main (int argc, char **argv)
{
    QApplication a(argc, argv);

    MainWin w;

    w.resize(300,600);
    w.show();

    return a.exec();
}
开发者ID:BryanF1947,项目名称:GoldenCheetah,代码行数:11,代码来源:curvdemo1.cpp

示例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();
}
开发者ID:demonlife,项目名称:RedisDesktopManager,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:376473984,项目名称:pvb,代码行数:14,代码来源:curvdemo1.cpp

示例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();
}
开发者ID:TracyHu,项目名称:RedisDesktopManager,代码行数:14,代码来源:main.cpp

示例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();
}
开发者ID:Rillke,项目名称:AMA,代码行数:14,代码来源:main.cpp

示例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();
    }
}
开发者ID:ptmono,项目名称:eManual-gui,代码行数:15,代码来源:test_emanualcmd_flymake.cpp

示例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();
    }
}
开发者ID:mejwaller,项目名称:MothDB,代码行数:19,代码来源:main.cpp

示例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();
}
开发者ID:pingumacpenguin,项目名称:QtDMM-DTM0660-Version,代码行数:41,代码来源:main.cpp

示例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();
}
开发者ID:avble,项目名称:natClientEx,代码行数:36,代码来源:vidgui.cpp

示例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();
}
开发者ID:jhol,项目名称:qtdmm,代码行数:24,代码来源:main.cpp

示例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;
}
开发者ID:BtbN,项目名称:TwitchWatch,代码行数:24,代码来源:main.cpp


注:本文中的MainWin::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。