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

2014-03-20 Thread Дмитрий Козлов
On 17.03.2014 19:08, Rogers Nate wrote: I tried to override the flags function in the model but the function never gets called, it never printed out my debug statement or hit my break point. Not sure what to do here... Qt::ItemFlags MessageList::flags(const QModelIndex index) const {

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

2014-03-17 Thread Rogers Nate
I tried to override the flags function in the model but the function never gets called, it never printed out my debug statement or hit my break point. Not sure what to do here... Qt::ItemFlags MessageList::flags(const QModelIndex index) const { qDebug() Flags [ index ]: index.flags();

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

2014-03-13 Thread Rogers Nate
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

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

2014-03-13 Thread Scott Aron Bloom
Overload and customize the flags method in the model. You can set enabled/ editable/selectable/dragable etc Scott From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Rogers Nate Sent: Thursday, March