[Qt-interest] Tree Item view Highlighter

Stephen Kelly steveire at gmail.com
Tue Jan 11 13:19:11 CET 2011


Sajjad wrote:

> Hello forum,
> 
> 
> I am trying to highlight a particular tree item based on the string
> pattern entered by the user. To get this effect i subclassed the
> QSortFilterProxyModel and over-rid the data() function.
> 
> Then inside a slot whenever the string in the line edit changes i am
> emitting the signal dataChanged(....).
> And here i am confused about the  value to pass as the model indexes. I am
> doing it now as follows:

This is already a very long thread but you still haven't solved your issue. 
You haven't posted a Short, Self Contained, Correct (Compilable), Example 
(http://sscce.org/) which attempts to do only the thing that you're trying 
to do.

What you're attempting is not very difficult. But it's hard to follow this 
thread. Use what you have learned so far and post something complete that 
you think should work. Don't post your full app.




More information about the Qt-interest-old mailing list