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. Dynamic circles/dots
Forum Updated to NodeBB v4.3 + New Features

Dynamic circles/dots

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmldynamic
5 Posts 4 Posters 689 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.
  • B Offline
    B Offline
    ben80
    wrote on 29 Sept 2019, 21:00 last edited by
    #1

    Hi,

    What's the best way to create, move and delete small circles?
    I would like to display small circles/dots.
    Basically they will show a trend chart (one measurement every 5 minutes). After 5 minutes I add a new one and move the rest by one position. After 3hours the first one gets removed and a new one is added.
    Thanks Ben

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jalomic
      wrote on 29 Sept 2019, 21:21 last edited by
      #2

      You can use Rectangle with radius property seted as width*0.5

      1 Reply Last reply
      1
      • I Offline
        I Offline
        IntruderExcluder
        wrote on 30 Sept 2019, 09:01 last edited by
        #3

        Depends on what you have at backend. It can be a model, or you can simply create them dynamically.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GrecKo
          Qt Champions 2018
          wrote on 30 Sept 2019, 09:04 last edited by
          #4

          My first advice would be to use the Chart Module ( https://doc.qt.io/qt-5/qtcharts-qmlmodule.html ) with https://doc.qt.io/qt-5/qml-qtcharts-vxymodelmapper.html hooked to a model

          1 Reply Last reply
          0
          • B Offline
            B Offline
            ben80
            wrote on 30 Sept 2019, 18:00 last edited by
            #5

            If I create the dots dynamically, are there different ways of doing it? I have never done that before.

            1 Reply Last reply
            0

            3/5

            30 Sept 2019, 09:01

            • Login

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