I’m on a Mac. When a user wants to open a file in my app, they sometimes just go to the Finder and drag the file’s icon on to my app’s icon.
To detect that and respond appropriately, we need QFileOpenEvent, which returns a QFile. Which is what we need to load a json file.