如何使用OpenGL和QT? [英] How to work with OpenGL and QT?

查看:171
本文介绍了如何使用OpenGL和QT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个小项目,我需要使用OpenGL + QT

我俩都是新手.因此,我需要一个很好的教程来说明如何彼此(而不是单独地)彼此合作

在QT Creator上使用OpenGL或使用QT Visual Studio插件会更好吗?

解决方案

您将大量使用QGLWidget!在这里,您去了:

http://doc.qt.io/qt-5 /examples-widgets-opengl.html

在所有这些方法中,也许这是最好的方法:您好,GL示例.如果您更喜欢使用Qt Quick而不是Qt小部件,请查看以下帖子:

如果您要使用比OpenGL更高级的3D API,例如Qt 5.7 Qt 3D 变成稳定.. >

对于IDE,我建议使用Qt Creator.它可以在Windows上直接使用,语法高亮和自动完成功能与Visual Studio相当.

I'm Working on a small project and i need to work with OpenGL + QT

I'm Newbie in both of them. So i need a good tutorial that illustrates how to work with them each other not individually

is it better to work OpenGL on QT Creator or use QT Visual Studio Plug-in?

解决方案

You'll be using QGLWidget a lot! Here you go:

http://doc.qt.io/qt-5/examples-widgets-opengl.html

Of all those, maybe this is the best one to start: Hello GL Example. If you prefer using Qt Quick instead of Qt Widgets, check these posts:

If you want a higher-level 3D API than OpenGL, as o Qt 5.7 Qt 3D became stable.

As for the IDE I suggest using Qt Creator. It works out of the box on Windows and the syntax highlighting and autocomplete are comparable to Visual Studio.

这篇关于如何使用OpenGL和QT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆