我们来做这样的一个按钮界面,并实现每个按钮的效果
1、先来看这个
代码为FpsItem.qml文件
代码:
import QtQuick 2.0
Item {
id: root
property int frameCounter: 0 //帧数
property int frameCounterAvg: 0 //帧数平均值
property int counter: 0 //数量
property int fps: 0 //fps
property int fpsAvg: 0 //fps平均值
property int dp: 1
width: 140 * dp //140
height: Math.floor(20 * dp) //20
Image {
id: spinnerImage
anchors.verticalCenter: parent.verticalCenter
visible: