Qt 6.11 is out! See what's new in the release
blog
How to preserve the char case of host name returned from QUrl::host()?
-
-
The docs for QUrl refer to RFC 3987:
...
When an IRI uses components of the generic syntax, the component syntax equivalence rules always apply; namely, that the scheme and US-ASCII only host are case insensitive and therefore should be normalized to lowercase. For example, the URI
"HTTP://www.EXAMPLE.com/" is equivalent to "http://www.example.com/".
...So the odds are against you finding the original case of the host :-(