Hello,
I am new to QT environment, I am using QT version 4.6.4 and also i am using QT integrated with Eclipse for my development environment.
I am facing a problem with button signals and slots. Please see below.
I have a Class "Example" which is extended from QMainWindow class, And, Part of the UI I have used for opengl window, which I named it as "GLWidget" and it extends from QGLWidget.
Now class "GLWidget" is children of "Example" as it is using the part of the main window. And, I have created the button in Mainwindow UI using Qpushbutton. and added a code in the Example Class constructor for calling a particular function in the GLWidget class by using this code below.
connect(ui.button,SIGNAL(clicked()),ui.glWindow,SL OT(vDrawPoly()));
But, it doesnot work, It would not give me the expected results. Could anyone tell me what's the problem?
Thanks in Advance!




Reply With Quote
Bookmarks