[PyQt] Basic URL opening on mouse click

orcan oogetbil at phys.psu.edu
Mon Jul 2 06:56:12 BST 2007


Hi,
I have some text object in my widget that I created with QLabel. The text 
actually is rich text containing a URL tag. The text appears on my widget 
blue and underlined but it is not clickable. The mouse icon doesn't change 
to "hand" when I try to hover the link.

What function should I use to make the default browser open the URL when I 
click on the link? If the URL is an email address, what function calls the 
default email client? Also how do I make the hand icon appear?

It is probably very simple but I couldn't find how.
I'm using PyQt-3.17
Thanks
Orcan


More information about the PyQt mailing list