main.cpp
来自「Qt平台下使用,C++语言所实现的,球体位置变化,并相应的视角跟踪以及变换.对于」· C++ 代码 · 共 24 行
CPP
24 行
#include <qapplication.h>
#include "newprojectwindow.h"
int main( int argc, char** argv )
{
QApplication app( argc, argv );
QDesktopWidget* desktop = QApplication::desktop();
int width = desktop->width();
int height = desktop->height();
NewProjectWindow window;
app.setMainWidget(&window);
window.resize(1280, 1024);
window.move((width - window.width())/2, (height - window.height())/2);
window.show();
return app.exec();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?