[Interest] Skip over disabled items in listview and gridview when navigating with up/down/left/right arrows

Scott Aron Bloom scott.bloom at onshorecs.com
Thu Mar 13 15:28:13 CET 2014


Overload and customize the flags method in the model.

You can set enabled/ editable/selectable/dragable etc

Scott

From: interest-bounces+scott.bloom=onshorecs.com at qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs.com at qt-project.org] On Behalf Of Rogers Nate
Sent: Thursday, March 13, 2014 7:14 AM
To: interest at qt-project.org
Subject: [Interest] Skip over disabled items in listview and gridview when navigating with up/down/left/right arrows


I am using listview and gridview in my qml application that has navigation using the up/down/left/right arrows. When I disable a tile/button in my listview or gridview I want the user to not be able to select the tile and that works, however if the user is navigating with the arrows the cell can still receive focus (the button doesn't receive focus but the item does on some level, not sure how). What I want to happen is if a tile is disabled and the user uses a arrow to navigate to that tile it just skips over the disabled tile and goes to the next tile that is enabled. What is the best way to do this? Thanks!

Nate

Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140313/9f9e5c85/attachment.html>


More information about the Interest mailing list