widgets.custom_qlistview

Classes for custom QListView.

author:
  1. Marin (KTH)
date:

14.11.2018

Module Contents

class widgets.custom_qlistview.DragListView(parent)[source]

Bases: PySide2.QtWidgets.QListView

Custom QListView class with dragging support.

parent

The parent of this view

Type:QWidget
mousePressEvent(self, event)[source]

Register drag start position

mouseMoveEvent(self, event)[source]

Start dragging action if needed

mouseReleaseEvent(self, event)[source]

Forget drag start position

class widgets.custom_qlistview.TestListView(parent=None)[source]

Bases: PySide2.QtWidgets.QListWidget

afterDrop[source]
allowedDragLists = [][source]
dragEnterEvent(self, event)[source]
dropEvent(self, event)[source]