Questions tagged [qtopengl]

The QtOpenGL module offers classes that provide a C++ interface to OpenGL in Qt applications.

OpenGL is a standard API for rendering 3D graphics. OpenGL only deals with 3D rendering and provides little or no support for GUI programming issues. The user interface for an OpenGL application must be created with another toolkit, such as Motif on the X platform, Microsoft Foundation Classes (MFC) under Windows, or Qt on both platforms.

Note: OpenGL is a trademark of Silicon Graphics, Inc. in the United States and other countries.

The Qt OpenGL module makes it easy to use OpenGL in Qt applications. It provides an OpenGL widget class that can be used just like any other Qt widget, except that it opens an OpenGL display buffer where you can use the OpenGL API to render the contents.

Reference: http://qt-project.org/doc/qt-4.8/qtopengl.html

98 questions
1
vote
0 answers

How to produce correct coordinates of a point by using glReadPixels and gluUnproject?

I am using QGLWidget and QtOpenGL to display my point clouds and glReadPixels and gluUnProject to pick a point from a poiint cloud. The problem is that the glReadPixels does not seem to pick pixels of my points. I've tried to use different point…
Marras
  • 11
  • 2
1
vote
1 answer

How to combine multiple point cloud of same object hand scan

I'm working on a school project and one of the things i have to do is to combine multiple scans of the same object. These scans or .obj files and i want to combine them to obtain a better scan object. I search solutions on the internet but i don't…
Zitrouille
  • 21
  • 2
1
vote
1 answer

QtOpenGL - shared OpenGL context

I have an Qt4 + OpenGL + Python application which generates geometry and then draws it on QGLWidget. class GLWidget(QtOpenGL.QGLWidget): def initializeGL(self): (...) self.scene.buildScene() #this generates geometry and creates…
JD.
  • 455
  • 6
  • 15
1
vote
0 answers

Matlab and QT figure integration

I write a c++ file that opens a qt widget, and wrapped it with mex so I can call it from Matlab. Is it possible to open the widget withing a figure? e.g. in a subplot axes?
Mercury
  • 1,886
  • 5
  • 25
  • 44
1
vote
1 answer

How to make qt designer custom QOpenGLWidget widget background be transparent?

I have create a custom qt designer widget which inherit from QOpenGLWidget. Everything is fine except I cannot get the widget background transparent. Is there a way to fix this issue? void MyOpenGl::initializeGL() { initializeOpenGLFunctions(); …
ricky
  • 2,058
  • 4
  • 23
  • 49
1
vote
0 answers

How update a QQuickItem created only at C++ level

I have a QQuickItem derived class like below class MyQQuickItem : public QQuickItem { Q_OBJECT public: MyQQuickItem(QQuickItem *parent = 0); ~ MyQQuickItem(); QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *); }; I have my own…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
1
vote
2 answers

Qt module error - LNK 1112 in QtOpenGL

I am trying to build a project (x64) connected with Qt library in Microsoft Visual Studio 2010. The project I want to compile was built using Visual Studio 2008. I have all the dependencies added, downloaded compiled the Qt library 64-bit and done…
MTs
  • 199
  • 2
  • 19
1
vote
1 answer

How to use QOpenGLFrameBufferObject for shadow mapping?

I am trying to render a scene (bike on a platform shown below) with shadow using Qt's OpenGL classes. Screenshot of bike model without shadows I realize that we would need to make two passes for this. The first pass for rendering a depth-map from…
1
vote
1 answer

Translating mouse coordinates to model coordinates in OpenGL when rotations are involved

In the Qt Forums I found this question and sparkled my curiosity. I found a very simple example in Qt to display a cube and modified the cube logic to create a cube with a side length of 1 unit. Then I tried to click on the model and show the…
Adri C.S.
  • 2,909
  • 5
  • 36
  • 63
1
vote
2 answers

Evolution of QtOpengl

As I understand, there were no modules in early Qt versions, there were separate classes with different functions, including graphical. Opengl support was realized In qt 1.2. However, QPainter, QImage existed in early versions. So, is it correct to…
1
vote
1 answer

From which version did Qt begin to support opengl?

It's said that (in Qt documentation) Qt 2.3 had opengl module. So, where is the beginning (version's number) of its support?
1
vote
1 answer

Using QOpenGLContext for rendering in a widget

I have been reading various material online trying to figure out how to do OpenGL rendering in Qt these days, and apparently the old QGL modules have been deprecated. I really like the new QOpenGLContext and it's ability to initialize the open gl…
FatalCatharsis
  • 3,407
  • 5
  • 44
  • 74
0
votes
0 answers

How can one capture a qt Opengl widget in render doc to inspect shaders?

I want to debug my shaders using render doc (https://renderdoc.org/). I can capture the window. However the texture there is the whole window and the pipeline is also rendering of the whole window. I see where texture of the openglwidget I used is…
Nabi
  • 393
  • 1
  • 5
  • 13
0
votes
0 answers

Why only red channel works in fragment shader?

I'm using QOpengGLWidget to render a defaultFrameBufferObject,This is my fragment shader: #version 430 core layout(location = 2) uniform sampler2D texDisplay; in vec2 texVert; out vec4 color; void main(){ float co = texture2D(texDisplay,…
Chris
  • 265
  • 1
  • 10
0
votes
0 answers

OpenGL Causes PySide6/PyQt6 Application to Reload itself

When adding (at runtime) a new widget that carries any OpenGl component or is in itself an OpenGL widget(for example QOpenGLWidget), the application 'reloads' itself. Only after the 'reload' does it show the OpenGL widget. Even though the…
Ndeh Ngwa
  • 1
  • 1