wrap my url?

Lets say that i am getting url from the above code
QString baseUrl= QInputDialog::getText(this, tr("URL"),tr("Link:"), QLineEdit::Normal, "", &ok);

now i cant insert the baseUrl into the <a href .......> tag ???