Results 1 to 2 of 2

Thread: listview currentIndex increments when changing orientation

  1. #1
    Join Date
    Oct 2014
    Thanked 1 Time in 1 Post
    Qt products
    Unix/X11 Windows

    Default listview currentIndex increments when changing orientation

    I would like to seek advise on what to do with my current issues:

    1. I have a ListView of different qml pages, in horizontal orientation. Once I changed the screen orientation from landscape to portrait, it will scroll to the next page (currentIndex increments). I set the highlightRangeMode into ListView.StrictlyEnforceRange and snapMode into ListView.SnapOneItem 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 display first the width and height of the previous mode for half a second before filling the current width and height. To add, I used GridLayout as container of items on the page which is responsible on changing the page layout, the number of rows and columns changes when in Portrait or Landscape mode. Does this affect the issue?

    Thanks in advance!

  2. #2
    Join Date
    Feb 2015
    Qt products
    Qt4 Qt5
    Unix/X11 Windows Android

    Default Re: listview currentIndex increments when changing orientation

    Did you find a solution for the ListView currentIndex problem on screen rotation ?
    I still have the same error with QML in Qt 5.4.

Similar Threads

  1. Replies: 0
    Last Post: 31st January 2014, 15:50
  2. Replies: 1
    Last Post: 28th June 2012, 16:32
  3. Replies: 2
    Last Post: 21st June 2012, 13:43
  4. Replies: 6
    Last Post: 22nd September 2008, 11:53
  5. currentIndex().internalPointer() problem
    By xgoan in forum Qt Programming
    Replies: 2
    Last Post: 14th December 2006, 09:55

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.