Thank you for visiting the BlackBerry Support Community Forums.
- Kevin Michaluk, Founder, CrackBerry.com
10-30-2013 06:09 AM
My header class code
signals: void newinfo(int a); void testing();
void process_new_info(unsigned char);
My Cpp class.
connect(this, SIGNAL(newinfo(int)), this,SLOT(process_new_info(unsigned char)));
void APP::newinfo(int a)
when i builded the code I am getting error saying first define here (Near to the function definition)
Deepu George Jacob
Solved! Go to Solution.
10-30-2013 06:24 AM
10-30-2013 07:02 AM - edited 10-30-2013 07:05 AM
You're doing it wrong
You can not send INT (void newinfo(int a) ) and receive unsigned char ( void process_new_info(unsigned char) )
The rest is good
private slots, signals etc...
Please read Signals and Slots QT
11-08-2013 08:40 AM
From the Signals and Slots documentation shared above: "To use this approach to pass information between controls, the signal and the slot need to use the same types of parameters. You can't connect a signal with afloat parameter to a slot that expects aQString parameter. Even though the types of parameters must match, the number of parameters doesn't need to."
So the problem in your code indeed is the mismatch between the parameter types of the signal and slog.
Hope that helps!