lesolorzanov
lesolorzanov

Reputation: 3606

QTopengl c++ simple 2d app

Im trying to make a simple 2D application, and our image processing professor has told us to use opengl. Im working with c++ and QT.

I want to open a simple window that holds a place where I can draw points of different colors. All by code, there is no user interaction. I cant use any other library, can anyone tell me how to do this?

Upvotes: 0

Views: 2320

Answers (4)

Andrejs Cainikovs
Andrejs Cainikovs

Reputation: 28464

2D Painting Example using QGLWidget.

Upvotes: 1

cmannett85
cmannett85

Reputation: 22366

Qt comes with numerous examples of using QGLWidget.

Upvotes: 0

BЈовић
BЈовић

Reputation: 64253

OpenGL is a library to render. You need at least one or two more (at least to create a window).

Since that is a homework, take a look at this example on how to do your assignment.

Upvotes: 0

Related Questions