46 questions
0
votes
0
answers
34
views
use osgGA::StateSetManipulator,Pressing T and L functions do not respond, why is this?
target:
Qt embeds osg for rendering. Use the osgQOpenGLWidget control to place into the QTabWidget control, a multi-page control that serves as the central widget of the QMainWindow subclass.
Finally, ...
2
votes
2
answers
176
views
QOpenGLWidget with Qpainter: OpenGL drawing only visible after first paintGL call
I would like to use a QOpenGLWidget in QT to create fast line plots. These plots are to be provided with some labels, for which I am currently using QPainter with drawText(). In various examples, the ...
0
votes
0
answers
91
views
QOpenGLContext in PyQT with Multiprocessing
I have have hit a roadblock as my mix of knowledge of Python, OpenGL and googling is not enough to find a solution to the following problem.
I need to use multiprocessing (or a spawn instance of ...
0
votes
0
answers
147
views
High CPU usage when using QOpenGLWidget to draw YUV data
I implemented a glRender class which subclassed QOpenGLWidget to display YUV data from a H264 decoder (1920x1080@60fps). The problem is that the OpenGL drawing process takes about 60% of processing ...
0
votes
0
answers
217
views
QOpenGLWidget crashed when the graphics card is disabled
I run the qt official example "2dpainting" in "C:\Qt\Examples\Qt-5.12.2\opengl\2dpainting". When I set the graphics card (Intel(R) UHD Graphics, it is the graphics card that ...
0
votes
1
answer
138
views
How to properly use QOpenGLBuffer.PixelPackBuffer with PyQt5
I am trying to read the color buffer content of the default framebuffer in PyQt5 using pixel buffer object given by the Qt OpenGL framework.
It looks like the reading is unsuccessful because the end ...
0
votes
0
answers
104
views
How to draw a 3d square in Qt?
I've been trying to draw a simple 3d square but I'm getting nothing. From my understanding I'm setting it up correctly. There's a context, vao and vbo with vertex data allocated to it, and the ...
1
vote
0
answers
289
views
Couldn't render OpenGLES context in Qt
I am trying to use OpenGLES in a desktop platform. I have a class whose name is GraphicsViewer which is derived from QOpenGLWidget. When I set the QSurfaceFormat::renderableType to QSurfaceFormat::...
0
votes
0
answers
220
views
Qt5: Drawing some graphics on top of QOpenGLWidget
I'm building an app which uses Qt5 that aims to display a video from a digital camera (using Gstramer pipeline). Then with the help of QPainter I'm drawing some graphics on top of it (some text shapes,...
0
votes
0
answers
55
views
can't glactive multi textures in Qt's paintGL?
I'm working on my ssr demo so I need to store some rendering data to textures for post-process.But when I use these textures,it seems like in paintGL only one texture-unit can be actived:
//I did a ...
1
vote
2
answers
627
views
Draw GL_LINE in QOpenGLWidget using array of coordinates
I have working application done using QtCreator. My render class is
GLRendWindow::GLRendWindow(QWidget *parent): QOpenGLWidget(parent)
Now I would like to draw objects using arrays with coordinates ...
0
votes
2
answers
755
views
problem with QOpenGLWidget, QOpenGLWindow
Can anyone tell me why the following code in my paintGL does not draw when using the DrawArrays function? I'm using Qt 5.14.2 in Qt Creator on the last Windows 10.
A few comments;
I'm experimenting to ...
1
vote
1
answer
293
views
Get openGLwidget linked with Qtimer update
I m trying to build a gui with Pyqt5. and withing the gui there is an openGLwidget, that should contain a rotating cube. But i cannot figure out how to make the cube rotate.
Thank you.
this is the ...
1
vote
0
answers
845
views
How to reduce the lag in OpenGl?
I wrote a little application, which replaces the cursor with a hand drawn cursor. Therefor i used a QOpenGlWidget.
For the animation i use the frameSwapped signal:
connect(this, SIGNAL(frameSwapped()...
0
votes
1
answer
364
views
QOpenGLWindow z-order issues
I am working on updating an application for a client.
They use Qt and currently use a QGLWidget to display a full-screen view of 1 of 4 possible cameras selected by clicking the appropriate radio ...
1
vote
0
answers
944
views
How to add QOpenGLWidget to QGraphicsScene?
My main.cpp
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSurfaceFormat format;
format.setDepthBufferSize(24);
format.setStencilBufferSize(8);
format.setVersion(...
0
votes
1
answer
451
views
I can't paint on QOpenGLWidget
I'm new in Qt and I'm making an app that generates a 3D object with some points the user provides in GUI. The user defines the points and then, in the same window, a QOpenGLWidget paints the final ...
3
votes
0
answers
525
views
Is it possible to have a transparent QMainWindow and QOpenGLWidget with an opaque child toolbar?
I would like to have an opaque QWidget in a transparent QMainWindow. The QMainWindow's centralWidget contains a QWidget and a QOpenGLWidget in a vertical layout. The QOpenGLWidget is drawing correctly ...
0
votes
1
answer
477
views
Qt QOpenGLWidget crash when call glewInit() with error : Missing GL version
I use Qt to create a 3D program with GLEW.
I have a problem when I call glewInit() from run-time creating Widget.
I create an inherited class , MyRender, based on QOpenGLWidget. Then, implemented ...
1
vote
1
answer
363
views
Text dissapears on QOpenGLWidget after undocking
I'm trying to integrate Qt5 and OpenSceneGraph. I've found this minimal example of embedding.
When I encapsulate the widget, defined in the example, into a QDockWidget and add a simple text label to ...
0
votes
1
answer
706
views
QOpenGLWidget in new window
I have a simple UI with a button, after pressing the button I should open a new window where OpenGL stuff should be drawn. I'm trying to do this with QOpenGLWidget but the InitializeGL() and paintGL() ...
0
votes
0
answers
66
views
Qt brother window refresh causes efficiency
I have a parent window that has a QStackedLayout layout, using QStackedLayout::All mode, with a QOpenGlWidget at the bottom to render the video.
The top layer is a custom QWidget C that rewrites the ...
0
votes
0
answers
292
views
QOpenGLWidget in QTabWidget slows MouseMoveEvent
For a kind of CAD application I first create a QWidget (intended as a 2D editor) with mouse tracking enabled in a tab of QTabWidget. Drawing and moving lines is super fast as expected.
Next I create ...