PDA

View Full Version : Constructor wont accept more paramters.



akshaysulakhe
4th August 2013, 19:11
Hello friends, I am sorry for the vague subject heading. I have a class called selectionDemo. It creates image labels using another class called designLabel. Design label needs 3 parameters to work. this class definition goes like selectionDemo::selectionDemo(param1, param2, param3) : (param1) , (param2),(param3). There are certain push buttons which i have created and mapped the signals. The slot is already in this class which shows me which push button. The function of the push button is to change the image displayed. But for changing the image i must call the constructor, but it wont accept the 4th parameter. What shall i do? Kindly let me know.

Alundra
4th August 2013, 19:33
Why you don't add a function who return a pointer to the widget who shows the image and change the image using that ?

anda_skoa
5th August 2013, 12:53
This is a rather useless description of the problem.

There is no error message, no class declarations, no constructor definitions, basically nothing to analyze for either the cause of the problem nor for finding any solution.

Cheers,
_