QGLWidget setGeometry ?



  • Hi all,

    I've run into a bit of a problem here... I'm trying to learn how to implement a GL Widget into an application and I'm using as a starting point the hellogl_es example.

    I've been trying for a while to set the size of the GL widget without any success. For example, I would like to modify the hellogl_es widget to be 200x200 and to set its position to 30,30 inside the demo window. glwidget->setGeometry() doesn't exist and I can't find any other way to modify it's size.

    If someone has any idea about how this could be done, please let me know.

    Thank you in advance,
    Paul



  • QGLWidget inherits from QWidget and QWidget has a setGeometry() method; therefore, QGLWidget does have a setGeometry() method.



  • Thanks, I solved it... I wasn't setting the path to QGLWidget correctly.

    Regards,
    Paul


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.