[Qt-interest] QTreeView to QTreeWidget at run-time?

Andreas Pakulat apaku at gmx.de
Wed May 5 21:37:23 CEST 2010


On 05.05.10 13:04:23, Rob Simmermon wrote:
> That's what I was afraid of.
> 
> But will the headerview also contain sorting information and column order of
> the current view?
> 
> For example, if the user moved columns around, and sorted by the second
> column, will the headerview contain that info,

Check the QHeaderView API dox for what it exposes.

> Also, expanded state will also be needed for each item in the tree.  I
> don't think the Model contains this info.

You can query QTreeView for the expand-state of each model index.

Andreas

-- 
You recoil from the crude; you tend naturally toward the exquisite.



More information about the Qt-interest-old mailing list