最佳实践指南

这些文档提供了使用 Qt 解决特定技术问题的指南和最佳实践。它们按标题中第一个单词的字母顺序排列,因此请浏览整个列表以找到您需要的内容。

Best Practices for QML and Qt Quick

列出了使用 QML 时的最佳实践,以及Qt Quick

Calling Qt Functions From Unix Signal Handlers

这无法实现。但别灰心,还有办法……

Coordinate System

关于绘制系统所用坐标系的信息

Creating Shared Libraries

如何创建共享库。

Creating and Using Components for Qt Widgets Designer

如何创建和使用自定义控件插件

Desktop Integration

与用户桌面环境的集成。

Exception Safety

Qt 中的异常安全指南。

How to Create Qt Plugins

关于创建插件以扩展 Qt 应用程序和功能的指南。

Qt Test Tutorial

使用Qt Test

Restoring a Window's Geometry

如何保存和恢复窗口几何信息。

Session Management

如何使用 Qt 进行会话管理。

Setting the Application Icon

如何设置应用程序的图标。

Styling Approaches for Qt Widgets

在为Qt Widgets 应用程序设置样式时,如何在QStyle、StyleKit和样式表之间进行选择

© 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.