[PyQt] Creating a QUrl out of a string
    Christopher Probst 
    christop.probst at gmail.com
       
    Wed May  3 21:18:27 BST 2017
    
    
  
Hi,
Sorry for the newbie question. I am trying to create a QUrl out of a
string. The sample code is here:
string = QInputDialog.getText(self, "Download URL", "Enter URL to download")
url = QUrl( str(string) )
print ("the url is ", url)
the output gives me
the url is  PyQt5.QtCore.QUrl('')
What am I doing wrong?
Thanks,
Christopher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170503/85f7dba0/attachment.html>
    
    
More information about the PyQt
mailing list