Wan-Hi
16th March 2006, 22:31
hello everyone.
first, congratulations to this very nice site. i highly appreciate all well organized resources about Qt.
now to my problem: i want to implement a QTableView where only full rows are selectable. of course, this is not hard at all. i also want to enable drag-n-drop of full rows. when dragging full rows, the DropIndicator should not only highlight a single QModelIndex item, but a full row. therefore i wanted to override dragMoveEvent(QDragMoveEvent * event) of QAbstractItemView. unfortunately this "d" field (which i haven't fully understood), which holds the coordinates of the DropIndicator's drawing rectangle, is not accessible because it's private. :( is there another way to manipulate the drawing rectangle of the DropIndicator?
thanks.
wan-hi
first, congratulations to this very nice site. i highly appreciate all well organized resources about Qt.
now to my problem: i want to implement a QTableView where only full rows are selectable. of course, this is not hard at all. i also want to enable drag-n-drop of full rows. when dragging full rows, the DropIndicator should not only highlight a single QModelIndex item, but a full row. therefore i wanted to override dragMoveEvent(QDragMoveEvent * event) of QAbstractItemView. unfortunately this "d" field (which i haven't fully understood), which holds the coordinates of the DropIndicator's drawing rectangle, is not accessible because it's private. :( is there another way to manipulate the drawing rectangle of the DropIndicator?
thanks.
wan-hi