📄 main.cpp
字号:
#include <QApplication>#include <iostream>#include "teapots.h"int main(int argc, char *argv[]){ QApplication app(argc, argv); if (!QGLFormat::hasOpenGL()) { std::cerr << "This system has no OpenGL support" << std::endl; return 1; } if (!QGLFramebufferObject::hasOpenGLFramebufferObjects()) { std::cerr << "This system has no framebuffer object support" << std::endl; return 1; } Teapots teapots; teapots.setWindowTitle(QObject::tr("Teapots")); teapots.resize(400, 400); teapots.show(); return app.exec();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -