I am implementing a function which searchs a QModelIndex based on a QString input.
However if I cannot find this index, the function should retun an invalid index.
My model is a QStandardItemModel.
Is is okay to return invisibleRootItem()->index() as an invalid index?
In the qt documentation is noted that it will always creates an invalid index.