Results 1 to 5 of 5

Thread: how does qt remember toolbar locations

  1. #1
    Join Date
    Jun 2015
    Location
    California, USA
    Posts
    61
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11
    Thanks
    43
    Thanked 1 Time in 1 Post

    Default how does qt remember toolbar locations

    When we move toolbars to different areas Qt remembers their locations the next time we start the program.
    How does this work?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: how does qt remember toolbar locations

    Likely it saves them to a config.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2015
    Location
    California, USA
    Posts
    61
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11
    Thanks
    43
    Thanked 1 Time in 1 Post

    Default Re: how does qt remember toolbar locations

    Does anyone know where Qt saves the toolbar locations?

  4. #4
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    520
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 77 Times in 75 Posts

    Default Re: how does qt remember toolbar locations

    Hi, QMainWindow::saveState works well together with QSettings to save your GUI setup.

    Ginsengelf

  5. The following user says thank you to Ginsengelf for this useful post:

    ravas (14th July 2015)

  6. #5
    Join Date
    Jun 2015
    Location
    California, USA
    Posts
    61
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11
    Thanks
    43
    Thanked 1 Time in 1 Post

    Default Re: how does qt remember toolbar locations

    Thanks! I think I found it (forked open source project).

    Qt Code:
    1. RS_SETTINGS->writeEntry("/DockWindows", QVariant (saveState()));
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 0
    Last Post: 25th October 2011, 17:29
  2. Replies: 4
    Last Post: 1st May 2010, 15:02
  3. find bin, lib and include locations
    By Adrian Sevcenco in forum Installation and Deployment
    Replies: 4
    Last Post: 18th October 2009, 14:39
  4. QDockWidget locations
    By elcuco in forum Qt Programming
    Replies: 7
    Last Post: 30th January 2008, 22:00
  5. Replies: 5
    Last Post: 18th April 2007, 21:02

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.