I use Qt's openUrl() with a 'mailto' link to open the user's email client, as the top answer here demonstrates. This works fine for Outlook, but if the user's email client is Chrome configured to open gmail when it receives a mailto: link, the entire to, subject, and body all end up in the 'to' field of the email.
QDesktopServices::openUrl(QUrl("mailto:" + to + "&subject=" + subject + "&body=" + body, QUrl::TolerantMode));
I have tried first encoding the subject and body, but this has not helped. Any ideas how to either fix this, or for an alternate method? (Using Qt 5.9.5, but this affected former versions such as 5.7.1 as well.)