Important: Please read the Qt Code of Conduct -

Theme enum for custom styles?

  • I am creating a custom Style for my application and have customized a collection of Quick Controls to use. I can already import these to my application correctly with the Configuration File.

    How can I create an enum for Theme type (Dark/Light) in my custom style? I see with Material type all controls have an attached type Material.theme that can be set to Dark/Light on an individual basis. I want that for my application.

    How can I achieve this?