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. QT Styles
Forum Updated to NodeBB v4.3 + New Features

QT Styles

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 403 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.
  • J Offline
    J Offline
    jcdelve
    wrote on last edited by
    #1

    I'm having some issues with QT6 on Windows. I want to use QT.Controls.Styles 1.4, in order to edit the style of a progressbar, but when I try and import the statement, I just get the error that the QML module is not found. I have QT.Controls 2.2 installed and working. I'm currently using QT 6.2.4, and when in the maintenance tool, I have everything under that checked and installed. Any help would be greatly appreciated!

    sierdzioS 1 Reply Last reply
    0
    • J jcdelve

      I'm having some issues with QT6 on Windows. I want to use QT.Controls.Styles 1.4, in order to edit the style of a progressbar, but when I try and import the statement, I just get the error that the QML module is not found. I have QT.Controls 2.2 installed and working. I'm currently using QT 6.2.4, and when in the maintenance tool, I have everything under that checked and installed. Any help would be greatly appreciated!

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @jcdelve said in QT Styles:

      I want to use QT.Controls.Styles 1.4

      You can't. These components are for Controls 1.x, they won't work with Controls 2.x.

      To style Controls 2.x, use https://doc.qt.io/qt-5/qtquickcontrols2-styles.html

      (Z(:^

      J 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @jcdelve said in QT Styles:

        I want to use QT.Controls.Styles 1.4

        You can't. These components are for Controls 1.x, they won't work with Controls 2.x.

        To style Controls 2.x, use https://doc.qt.io/qt-5/qtquickcontrols2-styles.html

        J Offline
        J Offline
        jcdelve
        wrote on last edited by
        #3

        @sierdzio So is it impossible to do a custom style in 2.x?
        And if that's the case and I want to use a custom ProgressBarStyle, can I use a QT.Controls.1.x to make it work?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Sorry, slightly wrong link. Here's a better one: https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-button

          Controls 2 can be styled, and it can be done in multiple ways.

          I want to use a custom ProgressBarStyle, can I use a QT.Controls.1.x to make it work?

          Yes you can mix Controls 1 and Controls 2. But be aware that Controls 1 are:

          • slow
          • deprecated in Qt 5
          • not available in Qt 6

          (Z(:^

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved