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. QOpenGLWidget: Cannot make uninitialized widget current

QOpenGLWidget: Cannot make uninitialized widget current

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 163 Views
  • 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
    Make it GREAT again
    wrote on last edited by
    #1

    I tried embedding a qwt3d object into the UI of my project. The embedding seems fine after making attempts but there is still problem to deal with.

    Debug mode gives output like this QOpenGLWidget: Cannot make uninitialized widget current

    , and UI does not show labels of axes as given by the image attached.

    TestGui::TestGui(QWidget *parent) : QMainWindow(parent),
    ui(new Ui::TestGui)
    {
    ui->setupUi(this);

    QGridLayout *grid = new QGridLayout(ui->frame);
    
    oPlot = new DifPlot(ui->frame);
    grid->addWidget( oPlot, 0, 0 );
    
    // Setting labels and so on.
    

    }
    DifPlot is inheritted from Qwt3D::GridPlot and explicity calls constructor of its parent class.
    alt text

    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