I'm using QImage.save to save an image of my OpenGL framebuffer to disk. If I just call save("plot.jpg"), I have no idea where the image ends up. It's not in the application directory. I can call save("/Users/wallacer/desktop/plot.jpg") to save the file on my desktop, but obviously that's no good for running on anyone else's machine. Is there an environment variable or something I can use to save the QImage to a known location? Or is there a way I can just save the image to the directory the application resides in?
This seems obvious, but I can't seem to find anything about choosing a save location in the docs.
Thanks!