Home > Mobile >  Qt QTextBrowser again after click insert hyperlinks added text with the original link, and how to so
Qt QTextBrowser again after click insert hyperlinks added text with the original link, and how to so

Time:09-24

According to project requirements, QTextBrowser insert hyperlinks, if not, click on the following add text was just text, but if I click on the link, the subsequent add text will contain the path of the link, how do I solve??

Add links and text using append, the code is as follows:
The UI - & gt; TextBrowser_EXEShow - & gt; Append (tr (" end of the report generation, please find the corresponding local directory or email or & lt; Html> " ). Arg (htmlPath));

The experiment insertHtml, effect,


Display as follows:

Click on the link, take time to add text is as follows:

CodePudding user response:

The UI - & gt; TextBrowser - & gt; Document () - & gt; The clear ();
The UI - & gt; TextBrowser - & gt; SetText (" aaaaaaa ");
  •  Tags:  
  • Qt
  • Related