Obsolete Members for QAbstractItemView

以下成员源于类 QAbstractItemView 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

保护函数

(obsolete) int horizontalStepsPerItem () const
(obsolete) void setHorizontalStepsPerItem (int steps )
(obsolete) void setVerticalStepsPerItem (int steps )
(obsolete) int verticalStepsPerItem () const

成员函数文档编制

[protected] int QAbstractItemView:: horizontalStepsPerItem () const

Returns the horizontal scroll bar's steps per item.

另请参阅 setHorizontalStepsPerItem () 和 verticalStepsPerItem ().

[protected] void QAbstractItemView:: setHorizontalStepsPerItem ( int steps )

Sets the horizontal scroll bar's steps per item to steps .

This is the number of steps used by the horizontal scroll bar to represent the width of an item.

Note that if the view has a horizontal header, the item steps will be ignored and the header section size will be used instead.

另请参阅 horizontalStepsPerItem () 和 setVerticalStepsPerItem ().

[protected] void QAbstractItemView:: setVerticalStepsPerItem ( int steps )

Sets the vertical scroll bar's steps per item to steps .

This is the number of steps used by the vertical scroll bar to represent the height of an item.

Note that if the view has a vertical header, the item steps will be ignored and the header section size will be used instead.

另请参阅 verticalStepsPerItem () 和 setHorizontalStepsPerItem ().

[protected] int QAbstractItemView:: verticalStepsPerItem () const

Returns the vertical scroll bar's steps per item.

另请参阅 setVerticalStepsPerItem () 和 horizontalStepsPerItem ().