Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Calling the render funciton issue
Forum Updated to NodeBB v4.3 + New Features

Calling the render funciton issue

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 467 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mike_newbye
    wrote on last edited by
    #1

    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();
    }@

    Kind regards,
    Mikael

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved