[SOLVED]QTreeWidget position of columns
I have a QTreeWidget with some items in 4 columns, from index 0 to 3.
I want to have the position of where the last column starts (x position).
@treeWidget->topLevelItem(0)->child(3) but this has no pos() method available.@
How could I acheieve that?
What do you mean by x ? the pixel coordinate ?
Yes the pixel coordinate. The same as pos().x() on, a widget ;)
Then you can try visualRect(const QModelIndex &)
I also found :
which might be the easiest way to go ;)
This post is deleted!