[Qt-interest] QTreeView to QTreeWidget at run-time?
Andreas Pakulat
apaku at gmx.de
Wed May 5 17:56:55 CEST 2010
On 05.05.10 10:41:58, Rob Simmermon wrote:
> I don't think I'm explaining this well enough. I don't care about the model
> at all. I basically want the QListVIew that's in a QTreeView copied to a
> QTreeWidget. I need the exact state of the view, not the model. So
> whatever is displayed in the view, including column widths, column headings,
> column order, etc..., I need copied to a QTreeWidget.
>
> Is this not easily done?
No, you'll have to write that code manually, querying the headerview of the
treeview and set the apropriate things on the treewidget. And for the
actual content you'd still need to go through the model.
Andreas
--
You're ugly and your mother dresses you funny.
More information about the Qt-interest-old
mailing list