Qt Code:
  1. void QXmlStreamReader::setDevice(QIODevice * device)
To copy to clipboard, switch view to plain text mode 

Sets the current device to device. Setting the device resets the stream to its initial state.

See also device() and clear().
http://doc.qt.io/qt-4.8/qxmlstreamre...l#namespaceUri