随笔分类 - QT && OpenGL
qt之三维界面开发。。。
摘要:我很懒,直接看代码吧,相信你没问题。 头文件: #ifndef PICKENTITY_H #define PICKENTITY_H #include "base_render.h" #include <memory> namespace View3D{ class PickEntity:public
阅读全文
摘要:opengl之三角形绘制glDrawArrays .h #ifndef TRIANGLE_RENDER_H #define TRIANGLE_RENDER_H #include <QOpenGLWidget> #include <QOpenGLFunctions> #include <QOpenGL
阅读全文
摘要:opengl之纹理贴图 h #ifndef TEXTURE_RENDER_H #define TEXTURE_RENDER_H #include <QOpenGLWidget> #include <QOpenGLFunctions> #include <QOpenGLBuffer> #include
阅读全文
摘要:Polygon Offset If you want to highlight the edges of a solid object, you might try to draw the object with polygon mode GL_FILL and then draw it again
阅读全文
摘要:基本绘制(一) glad与glew作用类似,实现对底层OpenGL接口封装 glfw与glut作用类似,创建窗口界面 glut年代久远,现在用glfw居多,可使用glfw+glad组合方式,比如这个教程:https://learnopengl-cn.github.io/ OpenGL有很多扩展库,下
阅读全文
摘要:1、当vs2010编译qt时会出现以下错误: 1> 已启动全部重新生成: 项目: MyDialog, 配置: Debug Win32 1>生成启动时间为 2015/9/9 14:57:04。 1>InitializeBuildStatus: 1> 正在创建“Debug\MyDialog.unsucc
阅读全文
摘要:1 //默认构造函数 参数依次为,对话框正文,取消按钮名称,进度条范围,及所属 2 QProgressDialog *progressDlg=new QProgressDialog( QStringLiteral("正在保存......"), QStringLiteral("取消"),0,max,t
阅读全文
摘要:Qt QTreeWidget 新建一个Qt Widgets Application,拖拽一个Tree Widget 到 ui 界面上,最后实现的效果如下:
阅读全文
摘要:1 InformationPositionSubTableView::InformationPositionSubTableView(QStringList& columnNameList,QList& positionItemList,QWidget *parent) : m_ColumnNameList(columnNameList), m_PositionItemList(posit...
阅读全文