Dimensions Of QHeaderView
-
Hi Community,
I have QTreeView object that has a header. Which can be accessed by header() which returns QTreeView* object. Is there a way to get the header geometry of my treeview?
-
@jsulm I have seen this. But I need geometry of just the header in QTreeView
@Abhi_Varma And what is the problem?
treeView->header()->geometry(); -
Hi Community,
I have QTreeView object that has a header. Which can be accessed by header() which returns QTreeView* object. Is there a way to get the header geometry of my treeview?
@Abhi_Varma Yes, QTreeView is a QWidget so you can use https://doc.qt.io/qt-6/qwidget.html#geometry-prop
-
@Abhi_Varma Yes, QTreeView is a QWidget so you can use https://doc.qt.io/qt-6/qwidget.html#geometry-prop
@jsulm I have seen this. But I need geometry of just the header in QTreeView
-
@jsulm I have seen this. But I need geometry of just the header in QTreeView
@Abhi_Varma And what is the problem?
treeView->header()->geometry(); -
A Abhi_Varma has marked this topic as solved on