View Full Version : QGLWidget
manmohan
2nd June 2009, 05:12
hi,
how to place a Push Button and an QLCDNumber on the QGLWidget... while the QGLWidget displays the graphics content
Thank you.
vonCZ
3rd June 2009, 10:46
you do it just like with any other widget. For example:
QPushButton *myB = new QPushButton(myQGLWidget);
myB->move(10,10);
// or
// QPushButton *myB = new QPushButton;
// myB->setParent(myQGLWidget);
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.
manmohan
5th June 2009, 12:54
Thank you for the reply..
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.