Skip to content

Instantly share code, notes, and snippets.

@webmaster128
Last active January 1, 2016 23:38
Show Gist options
  • Save webmaster128/8217430 to your computer and use it in GitHub Desktop.
Save webmaster128/8217430 to your computer and use it in GitHub Desktop.
QUrl debug
QString f = "download.png";
qDebug() << "Filename: f=" << f;
QUrl u = QUrl(f);
QUrl ulf = QUrl::fromLocalFile(f);
qDebug() << "u = QUrl(f) =" << u << " => " << u.toLocalFile();
qDebug() << "ulf = QUrl::fromLocalFile(f) =" << ulf << " => " << ulf.toLocalFile();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment