Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Embedded 4.7.1 QAbstractItemView::PositionAtCenter Strictly Enforce Range



  • Hi,

    When using QListView::scrollTo(index, QAbstractItemView::PositionAtCenter) I would like that focus stays strictly at center (even if it causes blank when coming to list extremities) . When scrolling comes to first (or last) items, the focus doesn't stay at center it moves to top (or bottom) of the list.

    This can be done in QML with ListView property => highlightRangeMode: "StrictlyEnforceRange"
    Is there a similar property available in Qt ?


Log in to reply