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

listview currentItem issue++



  • hi,

    I would like to ask what to do with my issues:

    1. I have a ListView of different qml pages, in horizontal orientation. After changing the screen orientation from landscape to portrait, it scrolled to the next page (currentIndex increments). I already set the highlightRangeMode into ListView.StrictlyEnforceRange but still experiencing this issue. I am thinking this is due to change of width, wherein the width (in landscape mode) overlaps the next delegate item content while changing into portrait mode. Am I correct?

    2. Another thing is, any advise on how to set a smooth transition when changing screen orientation? Because I have this issue wherein the page will retain first the width and height of the previous mode for half a second before filling the current width and height.

    Thanks in advance!


Log in to reply