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. QGLWidget protected methods (initializeGL, resizeGL, paintGL) never called / not called [CLOSED/NO QT ISSUE]

QGLWidget protected methods (initializeGL, resizeGL, paintGL) never called / not called [CLOSED/NO QT ISSUE]

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.6k 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.
  • B Offline
    B Offline
    billouparis
    wrote on last edited by
    #1

    Hello,

    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) :
    QDialog (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);
    

    }@

    Thank you,
    Regards,
    Bill

    1 Reply Last reply
    0
    • B Offline
      B Offline
      billouparis
      wrote on last edited by
      #2

      When I execute the code I add -qws on the command line, in case there is a link with this?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        billouparis
        wrote on last edited by
        #3

        Can we close this thread please, the problem is directly related to my OS implementation, not Qt.
        Thank you,
        Regards,
        Bill

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Closed.

          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