I need to create a kind of usb flash drive creator. The problem is that it must be multiplatform and have GUI. GUI is not the problem because I'm quite familiar with Qt4. Hovewer, I don't know how to create flash drives from image file.
On linux I could use dd for that (just invoke it with QProcess but still it's not the ideal solution) because it could make exact copy of binary file (image) to usb drive (e.g. /dev/sdc). How can I achieve that on my own using Qt4? I can't simple copy file by file because I want to create whole disk structure (partition, bootloader etc.). I hope I've explained well what I need.
The solution must work on Windows and MacOS. Linux users can use simple bash script that uses dd to achieve the same thing.
Thanks in advance for any help or tips.