Convert QUrl to QString
-
I´m working on a web browser, and want a QUrl variable converted to a QString variable. How can this be done, and sorry for my bad english.
Cannabis2011!
-
Try the "toString()":http://developer.qt.nokia.com/doc/qt-4.8/qurl.html#toString method of your QUrl object.
-
Thanks for the reply. After a few experiments it worked out succesfully.
@
QString MainWindow::convert(QUrl input)
{
QString Input; Input = input.toEncoded();return(Input);
}@
I´m new to programming, so i still missing some understanding of it.