Project

General

Profile

Support #7976

WAbstractItemView and Drag and Drop

Added by Andreas Frolov 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/14/2021
Due date:
% Done:

0%

Estimated time:

Description

Hallo,

it is possible to configure the model or view so that the space between the elements or below the last element would be allowed as a drop target?

#1

Updated by Andreas Frolov 6 months ago

Hallo,

is it possible to configure the model or view so that the space between the elements or below the last element would be allowed as a drop target?

#2

Updated by Korneel Dumon 6 months ago

Hi Andreas,

the drop target is always an element in the view. In the model, you can interpret this as where you want the element to go and moving all existing items down. This means you cannot drop something in the last place since the last element will always be moved down.

#3

Updated by Andreas Frolov 6 months ago

Hi Korneel,

thanks for the answer. Does that mean that a drop action on an empty view is impossible? That is very strange.

Also available in: Atom PDF