[PyQt] using url in QTextEdit problem.

sa6113 s.payandeh at gmail.com
Tue Dec 9 12:32:09 GMT 2008


I would like to add URL type tags to the text that gets printed in QTextEdit
window, and if clicked I can get a function called. For that, but I have a
problem. 
I use this code: 

textEdit = QTextEdit(     self      ) 
textEdit.moveCursor(       QTextEdit.MoveEnd,False ) 
textEdit.append(  'http://www.w3schools.com') 
# I use "  <a href= "url"  " to assign the path to "my page" text.
textEdit.scrollToBottom(                                       ) 
. 
. 
. 
------------------- 
In textEdit window that is showed, I can see "my page" that is written in
blue and underlined, just like a web browser, but it isn't clickable. :( 
what is the problem? what should I do? 


-- 
View this message in context: http://www.nabble.com/using-url-in-QTextEdit-problem.-tp20913816p20913816.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list