Hello forum,
I am sure that some one over here have used QCompleter somewhere in their project and i need you help. The manual says something related to file system.
How to customize it if it a customized item model derived from QAbstractItemModel ?
I have a tree model preety much same as the simple tree model example. A snapshot might help:
tree.jpg
I want the completer to provide the user the look-up hint in such a manner that if the user type X3D, then all the names that starts with "X3D...." pop up in the lookup completion hint.
I think in that we have to lookup all the levels at a time. What do you think? I already did the following changes, but i am not getting what i need and i believe i am far away from what i want to get.
Qt Code:
completer->setModel(m_h3dTreeModel); m_nodeHighlightingEditor->setCompleter(completer);To copy to clipboard, switch view to plain text mode
I need more hints to achieve this behavior.
Let me know if i am clear enough with my requirement explanation.
Regards
Sajjad
Bookmarks