Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Dimensions Of QHeaderView
Qt 6.11 is out! See what's new in the release blog

Dimensions Of QHeaderView

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 259 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhi_Varma
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • A Abhi_Varma

      @jsulm I have seen this. But I need geometry of just the header in QTreeView

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @Abhi_Varma And what is the problem?

      treeView->header()->geometry();
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • A Abhi_Varma

        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?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Abhi_Varma Yes, QTreeView is a QWidget so you can use https://doc.qt.io/qt-6/qwidget.html#geometry-prop

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        A 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Abhi_Varma Yes, QTreeView is a QWidget so you can use https://doc.qt.io/qt-6/qwidget.html#geometry-prop

          A Offline
          A Offline
          Abhi_Varma
          wrote on last edited by
          #3

          @jsulm I have seen this. But I need geometry of just the header in QTreeView

          jsulmJ 1 Reply Last reply
          0
          • A Abhi_Varma

            @jsulm I have seen this. But I need geometry of just the header in QTreeView

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @Abhi_Varma And what is the problem?

            treeView->header()->geometry();
            

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2
            • A Abhi_Varma has marked this topic as solved on

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved