wirasto
9th November 2010, 06:11
I tried reimplement QTreeView. But in drawBranches I can't use QStyleOptionViewItem for condition...
QStyleOptionViewItem opt=viewOptions();
if (opt.state & QStyle::State_Children){
.....
....
....
}
QStyleOptionViewItem opt=viewOptions();
if (opt.state & QStyle::State_Children){
.....
....
....
}