PyQt5 QListWidget – Setting Drop Indicator Property
In this article we will see how we can set the drop indicator property of the QListWidget. QListWidget is a convenience class that provides a list view with a classic item-based interface for adding and removing items. QListWidget uses an internal model to manage each QListWidgetItem in the list. This property holds the indicator which is shown when drag and drop is enabled and when we drop the item at a place a indicator appears it can be turned off any time.
In order to do this we will use
setDropIndicatorShownmethod with the list widget object.
Syntax : list_widget.setDropIndicatorShown(True)
Argument : It takes bool as argument
Return : It returns None
Below is the implementation