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
Forum Updated to NodeBB v4.3 + New Features

QTableView Horizontalheader

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 395 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.
  • C Offline
    C Offline
    ckvsoft
    wrote on last edited by
    #1

    Hallo

    Pls can anyone tell me how i can get the index of the first Horitontalheader Column after reordering with drag and drop?

    lg Chris

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      QHeaderView has two functions:

      • https://doc.qt.io/qt-5/qheaderview.html#logicalIndex for the logical ordering
      • https://doc.qt.io/qt-5/qheaderview.html#visualIndex for the visual ordering

      Since reordering only affects the visual ordering you should be able to find out the rest.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      C 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        QHeaderView has two functions:

        • https://doc.qt.io/qt-5/qheaderview.html#logicalIndex for the logical ordering
        • https://doc.qt.io/qt-5/qheaderview.html#visualIndex for the visual ordering

        Since reordering only affects the visual ordering you should be able to find out the rest.

        C Offline
        C Offline
        ckvsoft
        wrote on last edited by
        #3

        @Christian-Ehrlicher said in QTableView Horizontalheader:

        QHeaderView has two functions:

        • https://doc.qt.io/qt-5/qheaderview.html#logicalIndex for the logical ordering
        • https://doc.qt.io/qt-5/qheaderview.html#visualIndex for the visual ordering

        Since reordering only affects the visual ordering you should be able to find out the rest.

        Thx. i search since days. It workls. ;-)
        lg Chris

        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