|
|
On 02.05.06 14:24:44, Nicolas Castagne wrote:
> Indeed, reimplemeting hasChildren() is not sufficient, since, in my case, an
> "empty container" is not decorated anymore with '-' whence it is EXPANDED,
> even though hasChildren still returns TRUE.
>
> How should I do ?
I'd write my own TreeView that uses Qt::UserRole to ask the model if a
specific item is a container or not and then decides based on that if
the decoration should be used or not. However I do not know which
methods you need to reimplement in your treeview to achieve this.
Andreas
--
You'll be sorry...
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|