How can I get a string from QLineEdit in QT to a variable of type char , or how can I get a string in QString and then convert it to char ?

    1 answer 1

    Extract a string from QLineEdit to QString:

    // QLineEdit* myLineEdit; QString text = myLineEdit->text(); 

    Convert to QByteArray and then pull out the zero-terminal string, as described in this article on Nokia Developer .