Kconfig: allow to load/save to QBuffer
QSettings and KConfig can only work with files at the moment.
I have the use case of reading/writing KconfigXT data to filesystem attributes. This forces me to have an intermediate file, that adds IO for no real reason. But KConfig should be able to work with QBuffer.
This should allow making tests use less IO.