Solved QTableView Horizontalheader
-
Hallo
Pls can anyone tell me how i can get the index of the first Horitontalheader Column after reordering with drag and drop?
lg Chris
-
QHeaderView has two functions:
- https://doc.qt.io/qt-5/qheaderview.html#logicalIndex for the logical ordering
- https://doc.qt.io/qt-5/qheaderview.html#visualIndex for the visual ordering
Since reordering only affects the visual ordering you should be able to find out the rest.
-
@Christian-Ehrlicher said in QTableView Horizontalheader:
QHeaderView has two functions:
- https://doc.qt.io/qt-5/qheaderview.html#logicalIndex for the logical ordering
- https://doc.qt.io/qt-5/qheaderview.html#visualIndex for the visual ordering
Since reordering only affects the visual ordering you should be able to find out the rest.
Thx. i search since days. It workls. ;-)
lg Chris