I want to be able to save the state of my QMainWindow in my application with the QDockWidgets to an XML file, but the saveState() and saveGeometry() functions output data as a bytearray so when I try to view it in a text editor I just get garbage instead of the information as actual bytes.
I wanted to know if there was a way I could get the state as a bytearray, convert it to be the text representation (based on say its ASCII representation here: http://www.asciitable.com/ ), store that in the XML, and when I wanted to restore the state, convert the extracted value from the XML back into a bytearray and pass that into the restoreState() function. This way XMLs can still be generated to save and load settings manually or with my application, and the data will be readable, though if the geometry and state elements are missing from the XML being manually created then I can just recreate the docks on load in a side by side configuration instead of in a particular layout.
Thanks,
Bookmarks