[Interest] Displaying QTreeView leaf nodes in a QTableView

Sune Vuorela nospam at vuorela.dk
Fri Sep 22 12:16:37 CEST 2023


On 2023-09-21, Richard Gustavsen via Interest <interest at qt-project.org> wrote:
>
>> 
>> But somehow, this is not working. Only the "root" node gets displayed in the table view.
>> 
>> Do you have any ideas what I could be missing?
>
>
> I would guess/assume that if you filter out a parent node, you also filter out all it’s children; The children cannot “exist” in the remaining tree model without it’s parent.
https://api.kde.org/frameworks/kitemmodels/html/classKDescendantsProxyModel.html 
and a custom rule in a QSFPM could probably get you there.

/Sune



More information about the Interest mailing list