用户输入示例

Qt 为基于小部件的应用程序提供了处理用户输入和拖放功能。
“可拖动图标”示例演示了如何在同一应用程序内以及不同应用程序之间,在控件之间拖放图像数据。 | |
演示了如何在小部件之间拖放文本。 | |
该示例展示了如何在拖放操作中区分各种可用的 MIME 格式。 | |
演示了如何在小部件中使用简单的手势。 | |
该示例展示了如何在 Qt 应用程序中使用 Wacom 数位板。 | |
演示了如何创建支持触摸输入的自定义控件。 |
© 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.