Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How do you style qt Quick (controls) applications?

    QML and Qt Quick
    styles
    2
    3
    947
    Loading More Posts
    • 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.
    • R
      RudolfVonKrugstein last edited by

      I find surprisingly little documentation about this. I find the qt quick controls styles, but the only two ways of styling I find seem to very tedious.

      Is there a way to keep the styling out of the interface files and somehow globally specify how for example a "Button" should look? Are there default styles I can use and switch between?

      S 1 Reply Last reply Reply Quote 0
      • S
        stan.m @RudolfVonKrugstein last edited by

        @RudolfVonKrugstein
        I do not know of any library of default styles.

        We create a styles folder in our project that has customized versions of the controls we want to use, such as TText, TButton, TTableView and we use those controls everywhere in our QML code. This allows us to quickly change the look of a new project by updating the components in the styles folder.

        1 Reply Last reply Reply Quote 2
        • R
          RudolfVonKrugstein last edited by

          Ok, thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post