Paint a rect on qglwidget at specifit times
This is a minimal sample application which mixes OpenGL code and QPainter in paint handler: #include <QtWidgets> #include <QOpenGLFunctions_1_1> // manually added types (normally provided by glib) typedef unsigned guint; typedef unsigned char guint8; extern const struct Image { guint width; guint height; guint bytes_per_pixel; /* 3:RGB, 4:RGBA */ guint8 pixel_data[1]; } fluffyCat; class GLWidget: … Read more