Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Example of match(....) function over-ridden of QAbstractItemModel
sajis997 last edited by
I need to highlight a hierarchical tree item based to user input and string pattern matching of the entered input. I was suggested to look into this match(...) function.
But i could not figure out how to over-ride the function . If anyone in the forum have already done something similar of what am trying to, she/he is earnestly requested to share the reference example information with me.
goetz last edited by
You usually do not need to override the method. Just feed it with the appropriate arguments (the string to search for, the role to check the data against, where to start, case insensitivity and so on).