yasirsaleem
9th March 2011, 13:19
hi dear,
I am using qt 4.7.1 and qt-creator 2.0.1. I have made a qglwidget.h and qglwidget.cpp. Then I made a widget in designer, right click it, selected promote to, then in base class I select "QWidget", in Promoted class name I wrote QGLWidget and in header file I wrote qglwidget.h
Now the problem is that how can I display my qglwidet.cpp code in the widget, which I made through designer. When I run my project the widget (to which I promote qtwidget) is displaying a black screen.
Kindly tell me that how can I display my code in that widget.
Thank you very much
I am using qt 4.7.1 and qt-creator 2.0.1. I have made a qglwidget.h and qglwidget.cpp. Then I made a widget in designer, right click it, selected promote to, then in base class I select "QWidget", in Promoted class name I wrote QGLWidget and in header file I wrote qglwidget.h
Now the problem is that how can I display my qglwidet.cpp code in the widget, which I made through designer. When I run my project the widget (to which I promote qtwidget) is displaying a black screen.
Kindly tell me that how can I display my code in that widget.
Thank you very much