showInfo() and askUser() ignore almost all HTML tags on macOS

Consider the following code:

showInfo("""
<h3>Headline</h3>
<p><a href='https://brave.com'>Click here!</a></p>
<p>Lorem ipsum dolor sit amet (§ 433), consectetur adipisici elit (Art. 13 GG), sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
<p><i>You can find more information about this <a href='https://autohotkey.com' style='color: rgb(185, 33, 33); text-decoration: none;'>here</a>.</i></p>
""")

On Windows everything looks like it’s supposed to:

The result on macOS is much different (according to screenshots from users):

  • Links are not highlighted in any way (neither with a default color nor with the color I specified under style). I am not sure they work at all. Edit: They do not.
  • There is no margin between paragraphs.
  • The headline is not interpreted correctly. It looks like plain text.
  • No italics.
  • All text is centered.

It basically looks like this (just centered): [Sorry, can’t provide a screenshot since I don’t have a Mac]

Headline
Click here!
Lorem ipsum dolor sit amet (§ 433), consectetur adipisici elit (Art. 13 GG), sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
You can find more information about this here.

What is the reason for this different interpretation? Is this a bug in Qt?

Yes, it appears to be some change in behaviour in recent Qt versions.

Thank you for confirming, Damien. Especially the missing link color is an annoying issue. (Still not sure if the links work at all. Edit: They do not.)

Maybe we should report it to the Qt-Project? I am not sure they are aware of it. I looked here:

Let me know if you want me to report the issue. Although somebody who actually uses a Mac and can test things might be better suited.

Looks like they won’t fix it until 6.6.

https://bugreports.qt.io/browse/QTBUG-114193

1 Like

Taht’s good to know in any case. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.