title: How to get path to USB drive on Linux in Qt?
body: <p>I have successfully compiled libusb with Qt and can now receive events when usb device is connected and when disconnected.</p>
  
  <p>Now I need to get path to the directory. This seems fairly easy under Windows, as I can use <code>QDir::drives()</code> according to <a href="http://doc.qt.io/qt-5/qdir.html#drives" rel="nofollow">Qt documentation</a>.</p>
  
  <p>So for Windows this returns C:\ , F:\ etc. and I can the write to these locations easily.</p>
  
  <p>However on Linux, all I have is <a href="http://www.voti.nl/docs/usb-pid.html" rel="nofollow">USB PID and VID</a> and I have no idea how to get a working path to the root of the USB. I need to write some files there using <code>QFile</code></p>
  
  <p>Is there a universal cross-platform solution?</p>