小编Mas*_*han的帖子

如何删除QStandardItemModel中的垂直标题?

我创建了一个表QTableView和一个QStandardItem小部件.如何从中删除垂直标题QStandardItemModel

c++ qt qtableview qstandarditemmodel

9
推荐指数
1
解决办法
3556
查看次数

Qml样条图中的异常

在创建样条图表时,它会在图表中获得循环,而某些部分则超出了图表面板.请找到以下代码

 ChartView {
    title: "Spline"
    anchors.fill: parent
    antialiasing: true

    SplineSeries {
        name: "SplineSeries"
        XYPoint { x: 154593917; y: 612.5 }
        XYPoint { x: 154594277; y: 425 }
        XYPoint { x: 154594632; y: 437 }
        XYPoint { x: 154594997; y: 460 }
        XYPoint { x: 154595357; y: 506 }
        XYPoint { x: 154596073; y: 513 }
        XYPoint { x: 154596437; y: 527 }
        XYPoint { x: 154596797; y: 575 }
        XYPoint { x: 154597517; y: 632 }
        XYPoint { x: 154597877; …
Run Code Online (Sandbox Code Playgroud)

charts qt spline qml

6
推荐指数
1
解决办法
149
查看次数

QML图表视图中的自定义工具提示工具提示

我已经使用代码设置了自定义工具提示

ChartView {
    id: chart
    anchors.fill: parent
    antialiasing: true
    ValueAxis {
        id: axisY
        tickCount: 3
    }
    DateTimeAxis{
           id: xTime
           gridVisible: false
       }
    ToolTip {
        id: id_toolTip
        contentItem: Text{
            color: "#21be2b"
        }
        background: Rectangle {
                border.color: "#21be2b"
            }

    }
    SplineSeries{
        id: chartseries
        pointsVisible: true
        pointLabelsVisible: false
        useOpenGL: true
        axisX: xTime
        axisY: axisY
        onClicked: {
            id_toolTip.show("dd")
         }
    }

}
Run Code Online (Sandbox Code Playgroud)

当我点击图表时,它给出了一个错误..

TypeError: Property 'show' of object QQuickToolTip(0x37275d0) is not a function" 
Run Code Online (Sandbox Code Playgroud)

但下面提到的代码将起作用。

  chart.ToolTip.show("dd")
Run Code Online (Sandbox Code Playgroud)

但我需要自定义工具提示

charts qt qml

5
推荐指数
1
解决办法
1664
查看次数

标签 统计

qt ×3

charts ×2

qml ×2

c++ ×1

qstandarditemmodel ×1

qtableview ×1

spline ×1