I was trying to convert a QString to char* type by the following methods, but they don\'t seem to work.
//QLineEdit *line=new QLineEdit();{just to describe w
Your string may contain non Latin1 characters, which leads to undefined data. It depends of what you mean by "it deosn't seem to work".