Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Embedded 4.7.1 QAbstractItemView::PositionAtCenter Strictly Enforce Range
Qt 6.12 LTS is out! See what's new in the release blog

Qt Embedded 4.7.1 QAbstractItemView::PositionAtCenter Strictly Enforce Range

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    apap_
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved