Saturday, July 5th 2008, 11:43pm UTC+1

You are not logged in.

  • Login
  • Register

T1c4L

Beginner

1

Thursday, May 8th 2008, 1:17pm

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
  • Go to the top of the page

2

Thursday, May 8th 2008, 2:41pm

RE: Drag & Drop with 2 TreeViews

try to do it on the viewport
Nicolas
  • Go to the top of the page

T1c4L

Beginner

3

Thursday, May 8th 2008, 4:28pm

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
  • Go to the top of the page

4

Friday, May 9th 2008, 6:49pm

RE: Drag & Drop with 2 TreeViews

look at doc: QAbstractScrollArea::setViewport to customize the viewport
Nicolas
  • Go to the top of the page

T1c4L

Beginner

5

Tuesday, May 13th 2008, 9:26am

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"
  • Go to the top of the page

Rate this thread