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
{
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();
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
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