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 create LED indicator in QML

How to create LED indicator in QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 4 Posters 2.0k Views 2 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
    James A
    wrote on last edited by
    #1

    Hi All,

    I wanted to create a circular LED indicator as shown in the below image. How to do this in QML ?

    33496b20-5884-4edb-bd77-a29b610223fb-image.png

    Regards,
    James A

    ndiasN 1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      Use Rectangle with radius and border. Colors can be changed via states.

      1 Reply Last reply
      2
      • J James A

        Hi All,

        I wanted to create a circular LED indicator as shown in the below image. How to do this in QML ?

        33496b20-5884-4edb-bd77-a29b610223fb-image.png

        Regards,
        James A

        ndiasN Offline
        ndiasN Offline
        ndias
        wrote on last edited by
        #3

        Hi @James-A,

        You can use StatusIndicator QML Type if you are using Qt5:
        https://doc.qt.io/qt-5/qml-qtquick-extras-statusindicator.html

        Regards

        1 Reply Last reply
        3
        • J Offline
          J Offline
          James A
          wrote on last edited by
          #4

          Hi @ndias

          Thanks for the link

          Regards,
          James A

          1 Reply Last reply
          1
          • P Offline
            P Offline
            panch
            wrote on last edited by
            #5

            @ndias said in How to create LED indicator in QML:

            Hi @James-A,

            You can use StatusIndicator QML Type if you are using Qt5:
            https://doc.qt.io/qt-5/qml-qtquick-extras-statusindicator.html

            Regards

            Hi,
            A bit related - I have a project that used Qt5.13 and the StatusIndicator QML type. After upgrading the project to Qt6, I now get the error: module "QtQuick.Extras" is not installed

            I have since discovered, that these controls have moved to the Enterprise Controls?
            https://doc.qt.io/QtQuickEnterpriseControls/qml-qtquick-enterprise-controls-statusindicator.html

            So I am not able to use it in this standard Open Source project anymore?

            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