Advertisement
JPeterson

QUrl

Oct 29th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. QDesktopServices.openUrl(QUrl("http://www.google.com/search?q= & "))
  2. # https://www.google.com/search?q=%20&%20=
  3. QDesktopServices.openUrl(QUrl("http://www.google.com/search?q=" + QString(QUrl().toPercentEncoding(" & "))))
  4. # https://www.google.com/search?q=%20%2526%20
  5. QDesktopServices.openUrl(QUrl.fromEncoded("http://www.google.com/search?q=" + QUrl().toPercentEncoding(" & ")))
  6. # https://www.google.com/search?q=%20%26%20
  7.  
  8. # correct: https://www.google.com/search?q=+%26+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement