79338341

Date: 2025-01-08 08:07:54
Score: 1
Natty:
Report link

A nice alternative to the accepted answer is to use

QUrl::fromUserInput

which is more flexible and covers also network paths.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pthomaid