QGLWidget protected methods (initializeGL, resizeGL, paintGL) never called / not called [CLOSED/NO QT ISSUE]
i am building a simple QDialog made of several pushbuttons and a QGLWidget,
everything works fine on PC/Windows XP, but nothing shows up on iMX51 Freescale Target running embedded Linux.
Here is the QDialog constructor, is there a problem that prevent the initializeGL/resizeGL or paintGL to be called due to the QDialog and Layout implementation?
Is there a way to force the drawing of my QGLWidget object?
@MainWindow::MainWindow(QWidget *parent) :
//Create an horizontal layout QHBoxLayout *layout = new QHBoxLayout; //Create the openGL widget / QGLWidget p_GLWidget= new myWidget(this); p_GLWidget->setMaximumSize(QSize(705,480)); p_GLWidget->setMinimumSize(QSize(705,480)); //Create button widgets button1 = new QPushButton("Media Cylinder"); button1->setMinimumSize(QSize(30,60)); button2 = new QPushButton("Temp Cylinder"); button2->setMinimumSize(QSize(30,60)); QVBoxLayout *vertLayout = new QVBoxLayout; layout->addLayout(vertLayout); vertLayout->addWidget(button1); vertLayout->addWidget(button2); layout->addWidget(p_GLWidget); this->setLayout(layout);
When I execute the code I add -qws on the command line, in case there is a link with this?
Can we close this thread please, the problem is directly related to my OS implementation, not Qt.
DenisKormalev last edited by