1

ALL,

If I have a QTextEdit with the bunch of text and will want to insert a hyperlink in this text somewhere, will I get a handling of this hyperlink for free or I will have to write some additional code to handle the hyperlink hovering/clicking?

TIA!

[EDIT]

What I mean to ask was - whether it is possible QTextEdit to recognize the hyperlink after typing www.google.com and pressing either Space Bar or Enter key, so that it becomes rendered appropriately. I don't want my user to type < a href=.....

Thank you and sorry for the confusion.

[/EDIT]

Igor
  • 5,620
  • 11
  • 51
  • 103
  • 4
    Possible duplicate of [Clickable hyperlink in QTextEdit](https://stackoverflow.com/questions/35858340/clickable-hyperlink-in-qtextedit) – Aleph0 Jun 26 '19 at 18:15
  • @Aleph0, and so I presume there is no auto URL detection on typing, like for example on Windows, where I type URL press space or enter and it will render the text as URL (blue and underlined)? I just tried to do this in Kate on *nix and there was no indication I typed the URL. – Igor Jun 30 '19 at 06:05
  • @Aleph0, sorry I guess I worded the question incorrectly. I will re0-write it more appropriately. Thx. – Igor Jul 01 '19 at 17:16

0 Answers0