Results 1 to 5 of 5

Thread: how does qt remember toolbar locations

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

    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,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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
    Thanks
    43
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11

    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
    512
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    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
    Thanks
    43
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11

    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, 16:29
  2. Replies: 4
    Last Post: 1st May 2010, 14:02
  3. find bin, lib and include locations
    By Adrian Sevcenco in forum Installation and Deployment
    Replies: 4
    Last Post: 18th October 2009, 13:39
  4. QDockWidget locations
    By elcuco in forum Qt Programming
    Replies: 7
    Last Post: 30th January 2008, 21:00
  5. Replies: 5
    Last Post: 18th April 2007, 20: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.