Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, May 2008
Flickering cursor while dragging


Message 1 in thread

Hi All,

I build my own ItemModel based on a QStandardItemModel und use it in my 
QTreeView with a SelectionModel with qt4.3.0 and implemented a DragNDrop 
function. As soon as I use Qt::ItemIsSelectable and 
qt::ItemIsDropEnabled as the items flags together and start a MoveAction 
drag on any item, the mouse cursor is changing its pixmap between a 
normal drag move and a forbidden icon.
I tracked the problem to appear somewhere in 
QAbstractItemView::dragMoveEvent. All is fine if I disable on of the 2 
item flags. I tried to use any selection mode without item dragging but 
this doesn't help. I also tried to use my own QDrag cursors but these 
cursors don't show up at all. Any Idea?

thx,
Marko

--
 [ signature omitted ]