Hey Everyone,

I am trying to link to an external website from my PyQt UI. Here's a simple 
example of what I have written:

link = QtWidgets.QLabel()
link.setTextFormat(QtCore.Qt.RichText)
link.setText("<a style='color:white;' href='https://www.google.com/' 
target='_blank'>Google Example</a>")

The link shows up just fine - including the styling. When I right click on 
the label, Qt offers me to copy the link location, so the link works, 
except when I click the link nothing happens. I would have loved to see 
chrome or firefox open up. Any ideas what I am missing? Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/32a16d4c-476f-4868-b04a-7b4cf4445d98n%40googlegroups.com.

Reply via email to