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. Glow and ChartView

Glow and ChartView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 468 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.
  • K Offline
    K Offline
    k.kustra
    wrote on last edited by
    #1

    Im trying to get glowing LineSeries in chartview. On the start everything is ok, but with every time when i update data(append new value to the series) glowing area is expanding. It looks like its overpaiting glow effect on glow effect. How to fix it ? Below my test code. Testing on raspberry pi 3. Gif with example execution

    0_1539867661833_glow problem.gif

    import QtQuick 2.0
    import QtQuick.Controls 2.2
    import QtCharts 2.2
    import QtGraphicalEffects 1.0
    
    Page {
    
        id: window
        visible: true
        width: 800
        height: 480
        property var index: 0
        LinearGradient {
            anchors.fill: parent
            start: Qt.point(0, 0)
            end: Qt.point(parent.width, 0)
            gradient: Gradient {
                GradientStop {
                    position: 0.0
                    color: "black"
                }
                GradientStop {
                    position: 1.0
                    color: "#011c3a"
                }
            }
        }
        ChartView {
            id: chartView
            backgroundColor: "transparent"
            anchors.fill: parent
    
            ValueAxis {
                id: valueAxisX
                min: 0
                max: 10
                visible: false
            }
    
            ValueAxis {
                id: valueAxisY
                min: 0
                max: 10
                visible: false
            }
    
            LineSeries {
                id: series
                axisX: valueAxisX
                axisY: valueAxisY
                color: "blue"
            }
    
            Glow {
                anchors.fill: chartView
                radius: 18
                samples: 37
                color: "#15bdff"
                source: chartView
            }
            Timer {
                interval: 500
                running: true
                repeat: true
                onTriggered: {
                    series.append(index, index)
                    index++
                }
            }
        }
    }
    
    
    1 Reply Last reply
    0
    • oria66O Offline
      oria66O Offline
      oria66
      wrote on last edited by oria66
      #2

      Hello @k-kustra. Do you check this article. Maybe it would help...

      Good luck.

      The truth is out there

      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