QTableView Drag'n'Drop Cell Indicator



  • Hello,

    I need some help with the drag and drop in QTableViews !

    I have two QTableView with customs QAbstractTableModel in which i implemented methods to deal with DnD (mimeData(), dropMimeData(), flgs(), etc.). When i drag a row or a cell from a table to the other, the drop indicator tells me if my drop is valid or not. I would like to know if it's possible to have an indicator different for each cell during the drop that depends of the mimeData of the selected dragging cell ?

    Thanks a lot !


  • Qt Champions 2016

    Hi and welcome

    Maybe
    void QDrag::setPixmap(const QPixmap & pixmap)
    Could be used ?
    You set it when you start the drag so it sounds it might do what you want.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.