×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    9

    About switching pages in a ListView

    Hi,
    I made a ListView that contains 3 rectangles (pages) & they are flicked horizontally, a rectangle is shown at a time & the view switches between them using a button,
    I want to know how to prevent the user from switching between them by pressing & dragging pages (he can only go to another rectangle by pressing the button)
    Thanks,

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Re: About switching pages in a ListView

    You could try setting the interactive property to false. ListView inherits Flickable and this property of flickable disables dragging and flicking.
    interactive: bool
    This property describes whether the user can interact with the Flickable. A user cannot drag or flick a Flickable that is not interactive.

    By default, this property is true.

    This property is useful for temporarily disabling flicking. This allows special interaction with Flickable's children; for example, you might want to freeze a flickable map while scrolling through a pop-up dialog that is a child of the Flickable.
    That's from: http://doc.qt.nokia.com/4.7/qml-flic...teractive-prop

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    9

    Re: About switching pages in a ListView

    Thank u very much bluechrism, it works.

Similar Threads

  1. QML ListView grows up
    By missdeer in forum [Archived] Qt Quick
    Replies: 6
    Last Post: 2011-11-23, 08:21
  2. ListView contentY problem
    By QtQueries in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-07-19, 08:12
  3. ListView item removing problem
    By pippo2010 in forum [Archived] Qt Quick
    Replies: 0
    Last Post: 2011-02-25, 23:01
  4. qt listview problems
    By kasperc in forum Nokia N9
    Replies: 2
    Last Post: 2010-04-28, 21:02
  5. WRTKit ListView issues...
    By sk272 in forum Symbian
    Replies: 0
    Last Post: 2009-11-02, 14:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •