Convert QString to unsigned char
i have a lineedit,
i have read the text using text() and assigned to QString variable
QString s = ui->lineedit1->text();
i have unsigned char variable mono ;
how should i assign QString to unsigned char mono.
can anyone help me
after QString s = ui->lineedit1->text();
just type "s.to" and ctrl+space you will get the list of conversions.
hope it helps.
Check the FAQ: "How can I convert a QString to char* and vice versa?":http://qt-project.org/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa