一些Qt课程缺少的属性

最后编辑了

概述

当啜饮得到建立它“squishidl”工具试图从大多数/所有Qt类中收集信息。然而“properties” of some classes such as QPixmap are actually only methods, and those are not supported by the squishidl yet.

幸运的是,如果需要,可以配置为公开此类属性。

For example the QPixmap 特性 width and height can made available by adding the following entry to <SQUISH_DIR>/lib/propertydelegates.tcl.:

addPropertyDelegate QPixmap \
    {int width width setWidth false true} \
    {int height height setHeight false true}
propertydelegates.tcl.

格式是:

{<type_name> <property_name> <getter_name> <setter_name> <is_static> true}