Issue
I have this code
link_test = "<a href='http://new.active.com/product/3761/'>active.com/product</a>"
text, ok = QInputDialog.getText(self, 'Window','To activate go here : ' + link_test)
And it shows the whole text in the box (< a href='...' > active.com < / a>). Is there a way to activate Html render or to make a browser link?
Solution
Try creating a QLabel with your link_text. and then set
myQLabel = QLabel()
myQLabel.setText(str(link_text))
myQLabel.setOpenExternalLinks(true)
And then use this QLabel in your QInputDialog
text, ok = QInputDialog.getText(self, 'Window', myQLabel)
EDIT:
If QInputDialog doesn't accept a QLabel as Parameter then i really think you have to write your own QInputDialog.
Answered By - ShuzZzle
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.