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.

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
tableviewsetindexwidgetqtableview
2 Posts 2 Posters 750 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 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
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Could you share a minimal example please?

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0

      • Login

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