如何在我的qt快速项目中将值发送main.cpp到Qml文件中
main.cpp
Qml
transform: Rotation { id: needleRotation origin.x: 5; origin.y: 65 angle: -120 + VALUE*2 }
对于使用qt quick 2.0制作的速度表,我经常需要Cpp的值
c++ qt qml
c++ ×1
qml ×1
qt ×1