用户输入示例

应用程序处理触摸手势

Qt 提供了在基于 Widget 的应用程序中处理用户输入和拖放的功能。

Draggable Icons Example

Draggable Icons 示例说明了如何在同一应用程序中的 Widget 之间以及不同应用程序之间拖放图像数据。

Draggable Text Example

示例说明了如何在部件之间拖放文本。

Drop Site Example

该示例演示了如何区分拖放操作中可用的各种 MIME 格式。

Image Gestures Example

演示如何在 widget 中使用简单的手势。

Tablet Example

该示例展示了如何在 Qt 应用程序中使用 Wacom 手写板。

Touch Knobs Example

演示如何创建可接受触摸输入的自定义控件。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.