當前位置:編程學習大全網 - 網站源碼 - qml中怎麽設置fastblur的啟動與關閉,除了更改半徑。。

qml中怎麽設置fastblur的啟動與關閉,除了更改半徑。。

Item {

width: 300

height: 300

Image {

id: bug

source: "images/1041077.jpg"

sourceSize: Qt.size(parent.width, parent.height)

smooth: true

visible: true

}

FastBlur {

id: _fastBlur

anchors.fill: bug

source: bug

radius: 32

}

MouseArea{

anchors.fill: parent

onClicked: {

_fastBlur.visible = !_fastBlur.visible

}

}

}

  • 上一篇:android 裏為什麽第壹個RadioButton 的按鈕會與它的內容部分重疊呢
  • 下一篇:怎樣看網頁中隱藏的內容?
  • copyright 2024編程學習大全網