[PyQt] Dialogue box with hyperlink

Darryl Wallace darryl.wallace at prosensus.ca
Tue Jan 27 20:11:22 GMT 2009


Hello,
> Has anyone somewhere an example code of a small dialogue box which 
> contains a hyperlink to a web site?
>
> I would like to point the user to some web site, in the confirmation 
> dialogue I want to show.
>
Quick way is to use a QLabel with <qt> </qt> tags in the string and then 
using the standard html for creating a hyperlink:

For example:

dialogLabel = QtGui.QLabel("<qt> Please visit <a href = 
"http://www.google.ca> Google</a>to search.</qt>")

darryl


More information about the PyQt mailing list