Hello!

I have a simple dialog which asks user to input text. The dialog is pretty much straight from the assistant (http://doc.trolltech.com/4.3/qinputdialog.html):

bool ok;
QString text = QInputDialog::getText(this, tr("QInputDialog::getText()"),
tr("User name:"), QLineEdit::Normal,
QDir::home().dirName(), &ok);
if (ok && !text.isEmpty())
textLabel->setText(text);

My question is: How do you copy what's in the "text" into a character array (say: myArray) so that it could be used and manipulated by the program.

Have a good day!