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. Best practice for managing multiple themes and UI states in a large Qt Design Studio project (25+ screens)
Forum Updated to NodeBB v4.3 + New Features

Best practice for managing multiple themes and UI states in a large Qt Design Studio project (25+ screens)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 52 Views 1 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.
  • A Offline
    A Offline
    andrewtate
    wrote last edited by
    #1

    Hi everyone,

    I’m working on an automotive HMI for a two-wheeler using Qt/QML and Qt Design Studio.
    The project has 25+ screens, and most of the front-end QML code has been generated directly by Design Studio.

    I have a question regarding the best architecture for theming and UI state management.

    1. Theme Management
      Currently, I use a custom Theme Manager (as a QML singleton) that switches:
      colors
      fonts
      icons/images

    Based on the selected theme.

    This works, but I'm not sure if this is the ideal approach for a large project created with Design Studio.
    Is it better to:
    Continue using a centralized Theme Manager, Or rely on Design Studio states, Flow, and component properties for theme switching, Or mix both approaches?

    1. UI States generated by Design Studio
      Design Studio generates a lot of states, timelines, and property bindings in the QML files for each screen. With 25+ screens, I want to keep everything clean and maintainable.

    So my question is:
    Is it recommended to keep the Design Studio generated states as-is, or should I refactor / centralize some of the UI logic manually to avoid duplication and complexity?

    Additional context
    Screens are mostly visual/UI heavy
    Themes change only colors, fonts, and images

    I want to maintain performance on embedded hardware because with my business logic cpu spike is nearly 80% + and application lags and one more thing i am integrating map on my application

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrewtate
      wrote last edited by
      #2

      @GrecKo can you suggest anything upon it

      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