마우스 클릭시
이미지 변환
Image {
id: image20
x: 723
y: 294
source: "img/bt_m_aux.png"
states: [
State {
name: "PressedImage";
PropertyChanges {
target: image20;
source: "img/bt_m_aux_excute.png"
}
},
State { name: "ReleasedImage";
PropertyChanges {
target: image20;
source: "img/bt_m_aux.png"
}
}
] //end states:MouseArea {
anchors.fill: parent
drag.target: image20
drag.axis: Drag.XandYAxis
drag.minimumX: 0
drag.maximumX: box.width - parent.width
drag.minimumY: 0
drag.maximumY: box.height - parent.width
onPressed: {
image20.state = "PressedImage"
console.log ("onPressed")
}
onReleased: {
image20.state = "ReleasedImage"
console.log ("onReleased")
}
}
'Qt' 카테고리의 다른 글
Qt list, auto scroll, 자동 스크롤 바 (0) | 2011.07.14 |
---|---|
Qt QPushButton 투명 관련 (0) | 2011.07.07 |
Qt Reference Documentation (0) | 2011.07.01 |
Exporting from Adobe Photoshop to QML (0) | 2011.06.30 |
Qt (Font,Size,Color) (0) | 2011.06.30 |