Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QListView ReOrder items with drag and drop

    General and Desktop
    2
    4
    1661
    Loading More Posts
    • 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.
    • A
      alexoparin last edited by

      Hi guys.

      I'm having a hard time with QListView items ReOrdering. I reimplemented flags() and supportedDropActions() methods. Now I can drop an item in another position and it moves their but the listview scrolls to the very top and the wrong item get’s selected. What I can do to solve this?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Please don't post almost the same question twice

        "Duplicate":http://qt-project.org/forums/viewthread/37018/

        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 Reply Quote 0
        • A
          alexoparin last edited by

          It's just kinda ignored. I don't know why it's not marked as active and why people don't try to answer it, though newer questions get answers. I'll delete my last one.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Threads shown in active are the ones you did not read yet

            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 Reply Quote 0
            • First post
              Last post