Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT AreaSeries is not stable
Qt 6.11 is out! See what's new in the release blog

QT AreaSeries is not stable

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 328 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.
  • V Offline
    V Offline
    Videas
    wrote on last edited by
    #1

    Hi, I am trying to creatre a graph in QT, using QT Graph, AreaSeries, but the graph are not fullfilled with color but has a lot of flicker inside insteas. Anyone have any recommendation to solve this?
    e4c70b67-60b3-43f0-8a0c-108dbbd4fdfc-image.png 06e43bda-903d-4afd-b00a-8bcd3017be8a-image.png

    Code:

    GraphsView {
    Layout.columnSpan: 3
    Layout.minimumHeight: 160
    Layout.maximumHeight: 160
    Layout.minimumWidth: 72+768+18+28
    Layout.maximumWidth: 72+768+18+28
    Layout.margins: {top:0; bottom:0; left:0; right:0}
    Layout.alignment: Qt.AlignTop | Qt.AlignRight
    marginTop: 8
    marginBottom: 18
    marginLeft: 18
    marginRight: 20-1 + 40
    antialiasing: false
    theme: GraphsTheme {
    //colorScheme: GraphsTheme.ColorScheme.Dark
    backgroundColor: colorBG
    plotAreaBackgroundColor: colorBG
    labelTextColor : colorGraphs
    }
    axisX: ValueAxis {
    id: histxaxis
    min: 0
    max: Math.pow(2,16)
    tickAnchor: 0
    tickInterval: Math.pow(2,16)/16
    labelFormat: "%.0f"
    }

        axisY: ValueAxis {
            id: histyaxis
            min: 0
            max: 4000
            tickAnchor: 0
            tickInterval: 4000/4
            labelFormat: "%.0f"
        }
    

    /*
    LineSeries {
    id: histogramLineSeries
    color: "#38ad6b"
    width: 1.25
    }
    */
    AreaSeries {
    id: histogramAreaSeries
    color: "#078AFE"
    borderColor: colorLineGraph
    borderWidth: 3
    // Upper boundary of the area
    upperSeries: LineSeries {
    id: histogramLineSeries
    // Data points will be added dynamically
    }
    }
    }

    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