Results 1 to 3 of 3

Thread: QSplitter::saveState returns empty string

  1. #1
    Join Date
    Aug 2008
    Posts
    70
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QSplitter::saveState returns empty string

    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 ?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSplitter::saveState returns empty string

    It's not a string but a byte array of binary data. Example usage is shown in the docs.
    J-P Nurmi

  3. #3
    Join Date
    Aug 2008
    Posts
    70
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default [SOLVED] QSplitter::saveState returns empty string

    Quote Originally Posted by jpn View Post
    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().

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.