Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Drag & Drop with 2 TreeViews
Hi,
I have followed the Qt instruction on how to implement drag and drop capabilities in my model.
This works perfect when im trying to dragdrop one item from view1 on another item in view2.
But if view2 has no items, i wont get any drop indicator.
Please help me =(
cheers,
mike
RE: Drag & Drop with 2 TreeViews
try to do it on the viewport
Nicolas
RE: Drag & Drop with 2 TreeViews
thx !
do you have a short intro how to use the viewport to setup the drop on it?
cheers,
mike
RE: Drag & Drop with 2 TreeViews
look at doc: QAbstractScrollArea::setViewport to customize the viewport
Nicolas
RE: Drag & Drop with 2 TreeViews
Hi,
thx I will take a look at it. But are you sure this is the right aproach? Cant see the connection between Scrollbars and droppin on an empty space within a QTreeView...
quote from the doc:
"The QAbstractScrollArea widget provides a scrolling area with on-demand scroll bars"