title: QDir::tempPath() vs QStandardPaths::writableLocation()
body: <p>I need to get the path to the temporary directory. Is there any difference between the following methods (except for the first one is available in Qt 4)? Which one is better to use?</p>
  
  <ul>
  <li><a href="http://doc.qt.io/qt-5/qdir.html#tempPath" rel="noreferrer"><code>QDir::tempPath()</code></a></li>
  <li><a href="http://doc.qt.io/qt-5/qstandardpaths.html" rel="noreferrer"><code>QStandardPaths::writableLocation(QStandardPaths::TempLocation)</code></a></li>
  </ul>