Can I use QtGui instead of glew/glfw/SDL library in Qt for OpenGL?

Read this(from the Qt website): (

It says that it provides OpenGLin it.

So can i use QtGui class instead of glew/glfw/SDL library for OpenGLwork?


Yes you can. If you're already using Qt, you have the advantage of everything else also being Qt, otherwise you might (depending on the other framework) need to handle e.g. input in a special way.

You could use Qt to get a platform window and an OpenGL context for rendering. However, Qt is a huge framework, and it doesn't make much sense to go for it if that's all you need.

Need Your Help

Comparing Two Timestamps Within a Second

shell unix timestamp

I am writing a shell script that parses a CSV file and performs some calculations.

Enable jQuery mouseover event

javascript jquery tooltip

I have some code that displays a message when a link is hovered over. This is using tooltipster and initially on page load it works fine. My problem happens when i click a radio button, this in turn