QTableWidget - Selection and Drag and drop
Hello everyone !
I'm french, sorry if my english language is not very good.
I would like to know if there is a method to select cells of QTableWidget and then drag and drop its.
The problem is that if we allow the selection, we cannot use drag and drop and if we allow the drag and drop function, the selection doesn't work.
So, i would like to add a small shape (if it is possible) on the bottom right corner for all cells that permit to select cells on mouse pressed button like excel and if we press mouse button on the cells, it is the drag and drop enabled.
Thanks
Mohaskh
Re: QTableWidget - Selection and Drag and drop
allows you to do both select multiple cells/rows & drag them
check QAbstractItemView::DragDropMode for other flags.
Re: QTableWidget - Selection and Drag and drop
Thanks for your response.
I tried to use this method but i cannot select cells and rows.
With : I can drag and drop only one item and i want to drag and drop a list of items after selecting them with the mouse.
Thanks ;)
Re: QTableWidget - Selection and Drag and drop
you need to use CTRL for multiple selection & SHIFT for bulk selection.