qglwidget Questions

2

Solved

I have used OpenGL in SDL before, but I have just started to learn QT. In QT, using OpenGL is proving to be somewhat of a pain. I have the following two files: main.cpp #include <stdio.h> #...
Rationality asked 17/1, 2015 at 23:56

4

Solved

In my application I take snapshots of a QGLWidget's contents for two purposes: Not redraw the scene all the time when only an overlay changes, using a cached pixmap instead Lat the user take scre...
Pleione asked 3/5, 2012 at 10:23

3

Solved

I need to scale the result of glDrawPixels image. I'm drawing a 640x480 pixels image buffer with glDrawPixels in a Qt QGLWidget. I tryed to do the following in PaintGL: glScalef(windowWidth/640...
Midpoint asked 8/1, 2012 at 1:0

2

I'm using QGLWidget to draw 3-D objects, the input to my program is the faces of the shapes. Meaning that when I want to draw a cube, I got list of 6 elements each one represent a face and each fa...
Halfbaked asked 23/10, 2013 at 12:7

1

Solved

All I can find is "whenever the widget needs to be painted." When is that, specifically?
Ironsmith asked 17/7, 2013 at 21:23

5

I was trying to compile a Qt and OpenGL program under Code::Blocks in Ubuntu 10.04. I get the 'undefined reference to 'vtable for GLWidget' #ifndef _GLWIDGET_H #define _GLWIDGET_H #include <Qt...
Waterhouse asked 24/12, 2010 at 11:20

2

Solved

I have a library proving me a QGLWidget, and the interface allow me to only to resize/set size, and control some GL animation; but no GL command is exposed outside, all i do it initialize GLWidget,...
Fictitious asked 11/2, 2012 at 18:32

1

I have a QML file which contains a layout of QML items and now I want one of those items to be a QGLWidget. i.e. I want to render to a specific QML item. Is anyone aware of how to do this?
Pyrogenous asked 14/10, 2011 at 16:23

1

Solved

I subclass QGLWidget and have my painting code in paintEvent instead of paintGL as I want to paint a 2D overlay using QPainter over my 3D stuff done with OpenGL. My depth buffering works fine when...
Glidewell asked 15/7, 2011 at 15:14

1

I'm designing my own augmented reality application. I have already detected the 4 corners for the patterns I'm working with. After detecting the 4 corners in a proper order I'm passing them into cv...
Panoptic asked 29/5, 2011 at 7:37

1

Solved

I'm creating a CAD-like app (Qt-based), it will be a multiple document interface and each document will contain about 5 viewports (derived from QGLWidget). As such I need my flat shader to be share...
Nuptial asked 5/12, 2010 at 19:20

2

Solved

I am new to OpenGL and Qt, and I am learning both simultaneously(3 days already:). I couple of years ago I did some exmerimenting with DirectX and I clearly remember that it was possible to make a ...
Kremlin asked 28/10, 2010 at 18:24

2

Solved

Greetings all, Does simply subclassing QGLWidget and reimplementing paintEvent() make use of OpenGL and hardware acceleration? I create a QPainter and draw QImages in this paintEvent(). What happ...
Lagoon asked 1/7, 2010 at 8:56

1

I'm starting off QT 4.6's example "OpenGL - 2D painting" It uses a subclass of QGLWidget, and makes painting operations with the class QPainter. I'd like to know how to do drawing directly with Ope...
Indented asked 27/6, 2010 at 17:29

1

Solved

I am trying to display HUD over my 3D game. For starters, I am just trying to display "Hello World", but I haven't had any success yet! The scene freezes / flickers once I am done. I am using Qt/C...
Goshorn asked 18/5, 2010 at 22:2
1

© 2022 - 2024 — McMap. All rights reserved.