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's widgets not moving when the header is resized.
Forum Updated to NodeBB v4.3 + New Features

QTableView's widgets not moving when the header is resized.

Scheduled Pinned Locked Moved Unsolved General and Desktop
tableviewsetindexwidgetqtableview
2 Posts 2 Posters 369 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.
  • G Offline
    G Offline
    griffonoak
    wrote on 29 Jun 2022, 16:52 last edited by griffonoak
    #1

    I am using a QTableView with some custom widgets I set using setIndexWidget. This works fine, but when I resize the table's sections, the set widgets do not follow. I can move around the header as much as I like, but the widgets only snap to position once I stop dragging the header section. I would like the widgets to smoothly track the column they're a part of while it's being resized; is there a way to do this?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 30 Jun 2022, 06:06 last edited by
      #2

      Could you share a minimal example please?

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0

      2/2

      30 Jun 2022, 06:06

      • Login

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