📄 main.cc
字号:
#include <qapplication.h>
#include <qtimer.h>
#include <qstring.h>
#include <qmessagebox.h>
#include "GLBox.h"
int main( int argc, char **argv ) {
QApplication app( argc, argv );
GLBox gl;
QString title = "snake 3D for linux";
QString text = "欢迎使用贪吃蛇 3D for linux . 其实游戏已经开始了~~~";
QMessageBox::information( 0, QString::fromUtf8( title, title.length() ) , QString::fromUtf8( text, text.length() ) );
app.setMainWidget( &gl );
gl.show();
return app.exec();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -