All Questions
201
questions
0
votes
1
answer
84
views
Qt 5.15, ANGLE: use DirectComposition, i.e. Flip Model SwapChain
I'm working on an application using Qt 5.15.11 and ANGLE, which needs to play nice with another application out of my control. With a lot of experimentation with a small DirectX test app I determined ...
0
votes
0
answers
90
views
Render a rotated text in QGLWidget
I want to display a rotated text in QGLWidget, Qt, C++, but I haven't been able to find a working code so far. Is it even possible to render a rotated text in OpenGL?
what I want is something like ...
1
vote
1
answer
621
views
OpenGL cannot draw in QtWidget at macOS
I try to use OpenGL combine with Qt in macOS platform, the system version is:Monterey.
because I want to create OpenGL context by myself and split the render thread from UI thread(main thread, that's ...
1
vote
1
answer
879
views
How to define the size of QT Opengl framebuffer
In GLFW we define the size of the Opengl framebuffer through this command.
GLFWwindow* window = glfwCreateWindow(1920, 1080, "Test Window", NULL, NULL);
This creates a opengl window of ...
0
votes
1
answer
94
views
How to show QWindow inside QMdiArea
I have a OpenGLWindow class that inherits QWindow and QOpenGLFunctions_3_3_Core, it's opening collada dae files (works fine in simple project).
Also i have a pdfViewer class that inherits from ...
0
votes
1
answer
733
views
How to use QOpenGLBuffer:: PixelUnpackBuffer
I can't figure it out how to properly write and read from a QOpenGLBuffer:: PixelUnpackBuffer.
What is the proper setup before writing into a PBO?
QOpenGLBuffer::write will not work using with a ...
0
votes
1
answer
45
views
Q3D Setting aspect ration has no effect on an image
Again trying to make something NOT out of box. I'm facing the following issue:
I was trying to change aspect ration of a camera like
Qt3DRender::QCamera *camera = view.camera();
camera->lens()-&...
0
votes
0
answers
167
views
Missing glVertexAttrib functions in Qt
I am currently updating my code to use Qt's qopenglfunctions_4_3_core.h functions for rendering. I am currently facing an issue while updating how I set static vertex attributes using glVertexAttrib*, ...
-1
votes
1
answer
282
views
No output for OpenGL
I am a newbie in QT and working with its openGL in the Ubuntu Platform
I have created a template as in :
My objective :
On clicking of the "Compute" button, two things are supposed to ...
1
vote
0
answers
234
views
QQuickWindow + custom OpenGL = black screen
I tried to integrate custom OpenGL based code with QML, to create QML component that show result of openGL rendering.
But I always get black screen. But all works fine with QOpenGLWidget or custom ...
0
votes
1
answer
539
views
Calling glActiveTexture(GL_TEXTURE1) before update() on a QOpenGLWidget causes textures to appear black
When inheriting from QOpenGLWidget and QOpenGLFunctions_4_5_Core, if I call glActiveTexture(GL_TEXTURE1) (or any other non-zero number) before calling update() textures appear completely black on the ...
2
votes
1
answer
164
views
Wrong OpenGL viewport of widget inside QDockWidget
I am drawing stuff on a widget which is inside a QDockWidget and has a 1:1 squared aspect ratio. However, the drawing surface is not properly resized.
How it should work:
How it works:
The code ...
4
votes
1
answer
2k
views
Control a textured 3D object opacity in QML
I am a bit new to Qt 3D in QML and I am trying to control the opacity of a textured 3D object.
I am using the simpleqml3d test project in order to do that.
I have played with the materials, but ...
1
vote
1
answer
862
views
Cannot compile Pangolin on QT Creator
I am new to pangolin and trying to compile a 'hello world' code of pangolin on Qt Creator. I have run into this "undefined reference" issue while compiling it. My code is simple :
#include <...
0
votes
1
answer
89
views
Why the other side of the plane is not being shown?
I created a plane in Blender and added it as a QCustom3DItem on Qt chart.
But while rotating the graph I noticed I can't see the other side of the plane, why?
#include <QtWidgets>
#include <...