Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
6.2.2
-
None
Description
Opening external link in QTextEdit does not work on Ubuntu 22
but the same code works on Ms Windows.
--{}{}O{}{}--
html option enabled for QTextEdit component
openExternalLinks set to true for both of QWidgetTextControl child and QTextEdit component itself
TextInteractionFlags set to (Qt::TextEditable | Qt::LinksAccessibleByMouse | Qt::TextEditorInteraction | Qt::TextBrowserInteraction )
--{}{}O{}{}--
Sample QTextEdit Content is :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta name="qrichtext" content="1" />
<meta charset="utf-8" />
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
</head>
<body style=" font-family:'verdana'; font-size:14pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<a href="http://www.google.com">
<span style=" text-decoration: underline; color:#0000ff;">google</span>
</a>
</p>
</body>
</html>
----- end -----
When click on the link , and error dumped in Application Output of Qt Creator :
gio: file:///home/hk/build-innovirtual-phase0-Desktop_Qt_6_2_2_GCC_64bit-Debug/www.google.com: Error when getting information for file “/home/hk/build-innovirtual-phase0-Desktop_Qt_6_2_2_GCC_64bit-Debug/www.google.com”: No such file or directory