PDA

View Full Version : QSplitter::saveState returns empty string



miraks
20th September 2008, 15:25
Hi,

I am trying to use QSplitter::saveState restore splitter position later.
It doesn't work because of the string returned is always empty. :(

I don't understand why. Is it a bug ? :confused:

jpn
21st September 2008, 18:43
It's not a string but a byte array of binary data. Example usage is shown in the docs.

miraks
21st September 2008, 21:30
It's not a string but a byte array of binary data. Example usage is shown in the docs.

Thanks to you I understood my mistake !

I am now using toHex() before creating a QString based on binary data returned by saveState().