added signal handler 'itemChanged'

This commit is contained in:
2025-09-01 23:28:24 +02:00
parent 527de65074
commit 147769bf60

View File

@@ -47,6 +47,12 @@ XQViewModel::XQViewModel( QObject* parent )
{
invisibleRootItem()->setData( "[rootItem]", Qt::DisplayRole );
setItemPrototype( new XQItem );
connect(this, &QStandardItemModel::itemChanged, this, [](QStandardItem *item)
{
qDebug() << " --- item changed: " << item->text();
});
}
@@ -175,7 +181,7 @@ void YourClass::onItemChanged(const QModelIndex &topLeft, const QModelIndex &bot
}
}
}
*/
}