幻灯片项目
QSlideItem 组件本质上是一个 QItem,带有两个附加插槽(left
和 right
),允许用户将项目(通过鼠标或触摸设备上的手指)拖动到其中一侧以应用特定操作。
¥The QSlideItem component is essentially a QItem with two additional slots (left
and right
) which allows user to drag the item (through mouse or with the finger on a touch device) to one of the sides in order to apply a specific action.
用法(Usage)
¥Usage
使用鼠标拖动或用手指向左或向右平移以查看 QSlideItem 的实际效果。
¥Drag with the mouse or use your finger to pan to left or right side to see QSlideItem in action.
提示
如果你的内容还包含图片,你可能需要为其添加 draggable="false"
,否则原生浏览器的行为可能会产生负面影响。
¥If your content also has images, you might want to add draggable="false"
to them, otherwise the native browser behavior might interfere in a negative way.