Obsolete Members for QAbstractItemView

The following members of class QAbstractItemView are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Protected Functions

(obsolete) int horizontalStepsPerItem() const
(obsolete) void setHorizontalStepsPerItem(int steps)
(obsolete) void setVerticalStepsPerItem(int steps)
(obsolete) int verticalStepsPerItem() const
  • 2 protected functions inherited from QWidget

Member Function Documentation

[protected] int QAbstractItemView::horizontalStepsPerItem() const

Returns the horizontal scroll bar's steps per item.

See also setHorizontalStepsPerItem() and 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.

See also horizontalStepsPerItem() and 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.

See also verticalStepsPerItem() and setHorizontalStepsPerItem().

[protected] int QAbstractItemView::verticalStepsPerItem() const

Returns the vertical scroll bar's steps per item.

See also setVerticalStepsPerItem() and horizontalStepsPerItem().

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