Properties missing for some Qt classes

Last edited on

Overview

When Squish gets build its "squishidl" tool tries to gather information from most/all Qt classes. However, the "properties" of some classes such as QPixmap are actually only methods, and those are not supported by the squishidl yet.

Fortunately Squish can been configured to expose such properties, if you require.

For example the QPixmap properties 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

The format is:

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