Hi,

I've been experimenting with drag&drop using WTableView
or WTreeView for quite a while now, works just fine.

The only thing getting in my way is that I cannot:

   manage to drop items from one WTreeView into another
   when the drop target has got no items yet.


My attempt is that users may drop into the ...View
Widget even when no items are there yet. Furthermore
I'd like to allow users to drop items into my widget
at any position (I'm using derived classes which
handle the dropEvent for themselves, so for me there
is no need to have a valid index I'm dropping on).

Any ideas how this could be done?


When I derive my own class from WTableView and add the
following lines, the behaviour is just what I need:

      setAttributeValue("drop", "true");
      setStyleClass(styleClass() + " Wt-tv-c");

Is there a clean way to achieve this behaviour using
WTableView / WTreeView / WAbstractItemView?


Thanks in advance,
Marc

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to