• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • MockSettings
  • MockSettings Class

    In-memory Settings implementation that doesn't persist to disk. More...

    Header: #include <MockSettings>
    Inherits: Settings

    Detailed Description

    MockSettings provides a Settings subclass that stores all values in memory instead of persisting to disk. This is useful for: - Unit testing widgets that need Settings - Screenshot capture where persistence is not needed - Isolated testing without affecting real settings

    All getters return default values unless explicitly set. The underlying QSettings from the base class is not used.

    See also Settings and ActivityMockRuntime.