Home > other >  Move up and down between PYQT5 how to implement a Qlistwidget item swap
Move up and down between PYQT5 how to implement a Qlistwidget item swap

Time:09-22

I want to achieve Qlistwidget item interchangeable between moving up and down, so I every time a new item will put the item and its layout widget into a list, and then call a function to traverse the list to generate Qlistwidget, then at the time of swaps, I exchanged their index in the list, then traverse generated Qlistwidget where they are not the slightest change, excuse me what went wrong
  • Related