QUrl's behaviour is intentional. The hostname component of the URL has to be a valid hostname.
Do not store anything in that component that is not a hostname. Like a workgroup name. Store that elsewhere.
QUrl's behaviour is intentional. The hostname component of the URL has to be a valid hostname.
Do not store anything in that component that is not a hostname. Like a workgroup name. Store that elsewhere.