How can I efficiently expand an entire subtree of a QTreeView?
问题 EDIT: it turns out that the root performance problem was a size-to-fit function attached to the expanded() signal, so I'm going to accept the first answer and delete this question for being misleading. Note: I'm asking this question so I can provide an answer for it (and maybe get a better answer). The solution is not intuitive. MacOS builds of Qt may have a way for the user to expand an entire QTreeView subtree (there was an open bug for it) but non-MacOS builds definitely do not. I am