[Interest] Model/view: DnD move w/o remove/insert.
Ch'Gans
chgans at gna.org
Sun Nov 27 15:04:24 CET 2016
On 28 November 2016 at 02:55, Giuseppe D'Angelo <dangelog at gmail.com> wrote:
> On Sun, Nov 27, 2016 at 11:25 AM, Ch'Gans <chgans at gna.org> wrote:
>> My model supports moveRows (without relying on remove/insert), and i
>> have a small toolbar under my table view to move the selected item up
>> and down.
>
> Unfortunately the code for DND predates moveRows. DND comes straight
> from Qt 4, and internal moves are implemented via insert+remove.
> moveRows is a Qt 5 addition, and we can't break old code. Nobody
> bothered so far to implement some kind of opt-in mechanism to use
> moveRows...
Hi Giuseppe,
Thanks for the explanation and the bits of history that go with it! ;)
Any plan to address this with Qt6, tho?
I think i will go for the custom QTableView as i don't have choice
really, shouldn't be that difficult...
Chris
>
> HTH,
> --
> Giuseppe D'Angelo
More information about the Interest
mailing list