滑动即可在QML中删除 [英] Swipe to delete in QML

查看:105
本文介绍了滑动即可在QML中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以像在WebOS上那样从QML中的ListView中删除项目,即在滑动条目后出现取消"和删除".

Is it possible to delete items from a ListView in QML like on webOS, i.e. after swiping the entry there's "cancel" and "delete".

我想使用Qt 4.7(所以QtQuick 1.1)

I'd like to use Qt 4.7 (so QtQuick 1.1)

推荐答案

QtQuick中没有默认组件可以处理手势信号.有一个Qt实验室项目引入了GestureArea,可以做您想要的事情.它没有与QtQuick 1.1配合使用,我不确定它的当前状态,但可以尝试一下. http://blog.qt.digia.com/blog/2010/10/05/getting-in-touch-with-qt-quick-gestures-and-qml/ 否则,没有QML解决方案,尽管Qt本身确实具有手势编程支持 http: //qt-project.org/doc/qt-4.7/gestures-overview.html

There is no default component in QtQuick that can handle gesture signals. There was a Qt labs project that introduced a GestureArea that may do what you want. It was not pacakged with QtQuick 1.1 and I am unsure as to its current status but feel free to give it a try. http://blog.qt.digia.com/blog/2010/10/05/getting-in-touch-with-qt-quick-gestures-and-qml/ Otherwise, there is no QML solution although Qt itself does have gesture programming support http://qt-project.org/doc/qt-4.7/gestures-overview.html

这篇关于滑动即可在QML中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆