跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Qml PathView 要怎么限制显示的范围
未分類
2021 年 1 月 16 日

Qml PathView 要怎么限制显示的范围

Qml PathView 要怎么限制显示的范围

資深大佬 : Vindroid 0

我想让图片只显示在黄框里,黄框外的不显示,要怎么弄?试过 ListView 也有同样的问题 Qml PathView 要怎么限制显示的范围

PathView {     id: _pathView     x: 490     y: 260     width: 300     height: 200     snapMode: PathView.SnapOneItem     model: _model     delegate: _delegate     pathItemCount: 5     path: _horizontalPath  Path {     id: _horizontalPath     startX: -_pathView.currentItem.width / 2 * 3     startY: _pathView.currentItem.height / 2      PathLine {         relativeX: _pathView.currentItem.width * _pathView.pathItemCount         relativeY: _pathView.currentItem.y     } } 

大佬有話說 (1)

  • 主 資深大佬 : Vindroid

    二了,用 clip: true 就行了,结帖

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具