⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 qt教学例子1
💻 CPP
字号:
/*    Qt OpenGL Tutorial - Lesson 01        main.cpp    v 1.00    2002/12/05    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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -