PDA

View Full Version : QTextEdit for Hyperlink



blueteeth
30th January 2008, 18:44
I typed
<a href="http://www.qtcentre.org">qtcentre</a>
into a textedit box with qdesigner, and used "ctrl+T" for testing. It showed me "qtcentre" in the box, but I could not open the hyperlink by clicking on it. Why:crying:? How could I make it?
Thanks!

aamer4yu
31st January 2008, 06:25
May be this thread (http://www.qtcentre.org/forum/f-qt-programming-2/t-qt41how-to-make-links-open-browsers-233.html) might be useful to you :)

jpn
31st January 2008, 12:52
You could use QTextBrowser instead of QTextEdit and set openExternalLinks property to true.

blueteeth
1st February 2008, 04:15
You could use QTextBrowser instead of QTextEdit and set openExternalLinks property to true.

I am using qt3 now, it seems only in qt4 QTextBrowser has openExternalLinks property:(

jpn
1st February 2008, 09:25
I am using qt3 now, it seems only in qt4 QTextBrowser has openExternalLinks property:(
You might want to update your profile that you're still using Qt3. And next time you start a thread, could you mark it as related to either Qt3 or Qt4, please?

Also, you might want to consider switching to today's technology, Qt4 that is. Qt4 has been out for some 2.5 years already. As far as I understood, Qt3 is no more being even maintained.