我创建了一个表QTableView和一个QStandardItem小部件.如何从中删除垂直标题QStandardItemModel?
在创建样条图表时,它会在图表中获得循环,而某些部分则超出了图表面板.请找到以下代码
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) 我已经使用代码设置了自定义工具提示
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)
但我需要自定义工具提示