Hi Friends
Help need to convert integer array To QString and emit the data to my slot
int a[10]={196,192,200,194,178,147,196,200,194,200};
int a[10]={196,192,200,194,178,147,196,200,194,200};
To copy to clipboard, switch view to plain text mode
I already tried this
char text[] = { '1', '2', '3', '4', '5', '\0' };
qDebug()<<string;
emit Send_Data_Array_to_form(string);
char text[] = { '1', '2', '3', '4', '5', '\0' };
QString string(text);
qDebug()<<string;
emit Send_Data_Array_to_form(string);
To copy to clipboard, switch view to plain text mode
above snippet work perfectly. But when i send integer array to QString the Receiver slot not properly receive my data i don know why. help me to resolve this issue.
this is my receiver slot
void MainWindow
::Test_Array_Initialization(QString S_Data
) {
qDebug()<<"*****SIGNAL EMITED From My_signal_get_form1**********"<<endl;
qDebug()<<"data received"<<S_Data.size()<<S_Data;
}
void MainWindow::Test_Array_Initialization(QString S_Data)
{
qDebug()<<"*****SIGNAL EMITED From My_signal_get_form1**********"<<endl;
qDebug()<<"data received"<<S_Data.size()<<S_Data;
}
To copy to clipboard, switch view to plain text mode
Thanks in Advance.
Bookmarks