Calling the render funciton issue
-
Hi,
I have a class defined separately from glwidget which renders the points from already saved data.
When i call that function from glwidget class paintGL() it works fine, but when I call that function from a button trigger event from mainwindow.h nothing happens, and the points are not rendered. Though the file read function works fine with the trigger action. Can anyone help me?Button trigger event
@void MainWindow::on_refresh_clicked()
{
GLWidget *widget = this->findChild<GLWidget *>("glwidget");
widget->coordinateT.ReadFile();
widget->coordinateT.render_data_points();
widget->updateGL_mech();
}@