Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCOlorCombobox

QtCOlorCombobox

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Hi All
    I am using qtcolorcombobox.cpp and qtcolorcombobox.moc.h files

    https://github.com/liangqi/qt-solutions/tree/master/qtcolorcombobox/src

    There are some user colors set in the drop down menu . of qtcolorcombobox.cpp . My requirement is if the user chooses the User Color in session one and exits the GUI and now next times opens the gui He/She should be able to see the User colors in next sessions also

    ? 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Hi All
      I am using qtcolorcombobox.cpp and qtcolorcombobox.moc.h files

      https://github.com/liangqi/qt-solutions/tree/master/qtcolorcombobox/src

      There are some user colors set in the drop down menu . of qtcolorcombobox.cpp . My requirement is if the user chooses the User Color in session one and exits the GUI and now next times opens the gui He/She should be able to see the User colors in next sessions also

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Qt provides a convenient API for this, see QSettings Class.

      From the QSettings documentation page:

      The QSettings class provides persistent platform-independent application settings.

      Users normally expect an application to remember its settings (window sizes and positions, options, etc.) across sessions. This information is often stored in the system registry on Windows, and in property list files on OS X and iOS. On Unix systems, in the absence of a standard, many applications (including the KDE applications) use INI text files.

      QSettings is an abstraction around these technologies, enabling you to save and restore application settings in a portable manner. It also supports custom storage formats.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved