Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to judge the current style?

How to judge the current style?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 232 Views
  • 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.
  • Z Offline
    Z Offline
    zhangXianxiang
    wrote on last edited by
    #1

    I have a custom control, such as MText {}.

    How do I determine whether the current style is Material or Universal?

    1 Reply Last reply
    0
    • KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by
      #2

      Hello @zhangXianxiang and welcome to Qt Forum.

      Firstly, can you define it better?

      I suggest you to read the QtQuickControl2 Style documentation, it will explain how you can change the Style of your application.

      QtQuickControl2 - Using Styles

      Note: In this method, it's only changable before the qml file is loaded. If you are trying to change the style in runtime.

      Check out this StackOverflow Post:
      https://stackoverflow.com/questions/44951317/qml-qtquickcontrols2-change-style-properties-at-runtime

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      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