예제 #1
0
int main( int argc, char* argv[] ){
    QApplication app( argc, argv );
    Ui::Ui_MainWindow gui;
		gui.setupUi();
		if(argc==2){
			gui.loadFile(argv[1]);
		}
    gui.show();
    return app.exec();
}
예제 #2
0
int HK_CALL main( int argc,char* argv[])
{
	hkMallocAllocator baseMalloc;
	hkMemoryRouter* memoryRouter = hkMemoryInitUtil::initDefault( &baseMalloc, hkMemorySystem::FrameInfo(1024 * 1024) );
	hkBaseSystem::init( memoryRouter, errorReport );
	glutInit(&argc,argv);
	QApplication app(argc, argv);
	QMainWindow *widget = new QMainWindow;
	Ui::Ui_MainWindow ui;
	ui.setupUi(widget);
	widget->show();
	return app.exec();
}