[PyQt] Dialogue box with hyperlink

Sundance sundance at ierne.eu.org
Wed Jan 28 10:10:16 GMT 2009


Geert Vancompernolle wrote:

> Has anyone somewhere an example code of a small dialogue box which
> contains a hyperlink to a web site?

http://spyrit.svn.sourceforge.net/viewvc/spyrit/trunk/AboutDialog.py?revision=187&view=markup

Basically, you use a QLabel that contains your link in HTML, and don't 
forget to setOpenExternalLinks( True ) on that label. Links are then 
opened when clicked with the user's default Web browser. That's all!

-- S.


More information about the PyQt mailing list