main.cpp

来自「一些OpenGL的开发实例」· C++ 代码 · 共 51 行

CPP
51
字号
/*    Qt OpenGL Tutorial - Lesson 11    main.cpp    v 1.00    2002/12/20    Copyright (C) 2002 Cavendish                       cavendish@qiliang.net                       http://www.qiliang.net/nehe_qt    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.*/#include <qapplication.h>#include <qmessagebox.h>#include "nehewidget.h"int main( int argc, char **argv ){  bool fs = false;  QApplication a(argc,argv);  switch( QMessageBox::information( 0,      "Start FullScreen?",      "Would You Like To Run In Fullscreen Mode?",      QMessageBox::Yes,      QMessageBox::No | QMessageBox::Default ) )  {  case QMessageBox::Yes:    fs = true;    break;  case QMessageBox::No:    fs = false;    break;  }    NeHeWidget w( 0, 0, fs );  a.setMainWidget( &w );  w.show();    return a.exec();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?