Important: Please read the Qt Code of Conduct -

QHeaderViews - Customizing Swap and Scroll Behaviors?

  • A couple of questions regarding QHeaderViews:

    Is it possible to customize the swap position? The issue is when using stretchLastSection in order to swap one header for another it has to be moved to the far right of the stretched section (it seems to activate the switch at >50%).

    Is it possible to disable the scrolling of the header view when when swapping columns? If the mouse is left on the on the far right or far left of the header view then the view keeps scrolling even after the dragged column is dropped.

Log in to reply