i use QT but i don't know opengl of QT. i want to draw moving circle or image on qopenghView which draw shapefile.

fot my object, i downloaded source code of this(https://github.com/blueluna/shapes).
and i downloaded shapefile of this(http://www.naturalearthdata.com/down...10m-coastline/).

and i added this code(//added my code) at void OpenGLWidget:aintGL().
but it can't move or can't draw circle or rectangle.
what should i do?


void OpenGLWidget:aintGL()
{
//added my code
foreach (CAirCraft *bubble, bubbles)
{
bubble->drawBubble();
}
}

//=================
//added my code

CAirCraft::CAirCraft(const QPointF &position, qreal radius, const QPointF &velocity)
: position(position), vel(velocity), radius(radius)
{
innerColor = Qt::transparent;
outerColor = Qt::transparent;
brush = Qt::blue;

QString FilePath = "/home/master/down/img/pokeball.png";
data.load(FilePath);
gldata = QGLWidget::convertToGLFormat(data);

glGenTextures(1, &texture[0]);
glBindTexture(GL_TEXTURE_2D, texture[0]);
glTexImage2D(GL_TEXTURE_2D, 0, 3, gldata.width(), gldata.height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, gldata.bits());

glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glBindTexture( GL_TEXTURE_2D, 0 );
}


void CAirCraft::drawBubble()
{
glLoadIdentity();
glPushMatrix();
glTranslated(100, 100,-1);

glDrawPixels(data.width(), data.height(), GL_RGBA,
GL_UNSIGNED_BYTE, gldata.bits());
glPopMatrix();
glFlush();
}