hi,
how to place a Push Button and an QLCDNumber on the QGLWidget... while the QGLWidget displays the graphics content
Thank you.
hi,
how to place a Push Button and an QLCDNumber on the QGLWidget... while the QGLWidget displays the graphics content
Thank you.
you do it just like with any other widget. For example:
Qt Code:
myB->move(10,10); // or // QPushButton *myB = new QPushButton; // myB->setParent(myQGLWidget);To copy to clipboard, switch view to plain text mode
puts a QPushButton on the previously instantiated/defined QGLWidget. The default location of the PushButton is 0,0 (from the upper left); "10,10" moves it down 10, and to the right 10.
Thank you for the reply..
Bookmarks