Questions tagged [qglwidget]

The QGLWidget class, part of the Qt framework, is a widget for rendering OpenGL graphics.

QGLWidget provides functionality for displaying OpenGL graphics integrated into a Qt application. It is very simple to use. You inherit from it and use the subclass like any other QWidget, except that you have the choice between using QPainter and standard OpenGL rendering commands.

Note: This class is part of the legacy Qt OpenGL module and, like the other QGL classes, should be avoided in the new applications. Instead, starting from Qt 5.4, prefer using QOpenGLWidget and the QOpenGL classes.

Documentation can be found here (Qt4) and here (Qt5).

186 questions
-1
votes
1 answer

Glwidget in qt issue with coordinates

I am running qt 4.7 on Mac OS X and the coordinates are being drawn wrong for glwidget. I've tried it on a Fedora box and it works fine. Does anyone know if there's a bug in glwidget for mac? or how I can fix it?
newDelete
  • 285
  • 2
  • 9
-1
votes
1 answer

More than one QGLWidget simultaneous doesn't work for a video usage

I have a problem if I want to display a video using QGLWidget. With one instance it works, but it doesn't and widgets are black with multi-occurrence (usage in QGridLayout for example). I subclass QGLWidget that way to play a video (by refreshing…
N0un
  • 840
  • 8
  • 27
-2
votes
2 answers

Create a new open GLWindow and instert a picture

I would like to create a window using open GL but i can't find any good tutorial, can anybody tell me one? Once the window will be create, i want to insert a picture on it!
RMG
  • 1
  • 3
-2
votes
1 answer

How to detect OpenGL 2D presence on a PC?

I have a project that does hardware-intensive redraws using OpenGL 2D in Qt. However, Qt does not have a fallback if GL-2D is not present, so instead nothing is drawn. This is useless, so how do I detect if the user's computer has or does not have…
waddlesplash
  • 739
  • 1
  • 6
  • 25
-3
votes
2 answers

Line get duplicated instead of moved

I'm using qWidget which inherits QGLWidget and below the widget I have 2 buttons. button1: + button2: - this is my code: void GLWidget::paintGL() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0,_w,0,_h,-1,1); …
asaf anter
  • 79
  • 1
  • 9
-4
votes
2 answers

Using UI design files and having a custom widget with custom constructor QT

I have 2 custom widgets inheriting from QGLWidget and I aim to show the same scene from 2 different views using these widgets. For this I share the first widget with the second widget. However this requires a custom constructor than the compiled UI…
in4001
  • 616
  • 6
  • 21
1 2 3
12
13