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. QTableView Horizontalheader loop error.
Qt 6.11 is out! See what's new in the release blog

QTableView Horizontalheader loop error.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    Pada_
    wrote on last edited by
    #1

    If you change the size of the HorizontalHeader with two columns, you have a sectionResize signal synchronized so that the VerticalHeader's Hegith changes to match the transformed column.

    However, if you change the size of the TableView and it reaches the size of the Vertical ScrollBar, it will end up in an infinite loop. Do you have a solution?

    K 1 Reply Last reply
    0
    • P Pada_

      If you change the size of the HorizontalHeader with two columns, you have a sectionResize signal synchronized so that the VerticalHeader's Hegith changes to match the transformed column.

      However, if you change the size of the TableView and it reaches the size of the Vertical ScrollBar, it will end up in an infinite loop. Do you have a solution?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Pada_

      Which Qt lib version are you using on which OS?

      Can you provide a minimum example to highlighting the issue?

      Vote the answer(s) that helped you to solve your issue(s)

      P 1 Reply Last reply
      1
      • K koahnig

        @Pada_

        Which Qt lib version are you using on which OS?

        Can you provide a minimum example to highlighting the issue?

        P Offline
        P Offline
        Pada_
        wrote on last edited by
        #3

        @koahnig

        Qt version uses 5.4. There is no example. Sorry.

        As the table view shrinks or stretches, resizing the table view header column section causes an infinite loop if a scroll bar occurs in that section.

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          I might be missing something but this looks like a bug in your code that can't manage the sizing once the scrollbars are shown. Doesn't sound like a problem in Qt

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1

          • Login

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