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 ().