Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. slot to called when one header is moved from one location to other location in Qtreeview
Forum Update on Monday, May 27th 2025

slot to called when one header is moved from one location to other location in Qtreeview

Scheduled Pinned Locked Moved Unsolved Language Bindings
4 Posts 2 Posters 986 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    slot to called when one header is moved from one location to other location in QTreeview

    connect(hdr, SIGNAL(sectionMoved(int, int, int)), hdrHandle, SLOT(slotSectionMoved(int, int, int)));

    I have made this connection and this slot gets called when one header moves from one location to other location

    but this slot does not get called everytime

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You have to give more information.

      When exactly does it not get called ? Describe the cases when something does not go as expected.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        When I drag the column header then only sometimes the section sectionMoved gets called sometimes not

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That was already clear. The question was: can you reproduce that behaviour easily ?

          Can you share a minimal compilable example showing that behaviour ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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