|
 |
Drag & Drop with 2 TreeViews |
T1c4L
Assistant
Registration Date: 25.04.2008
Posts: 4
Level: 4 [?]
Experience: 88
Next Level: 100
 |
|
| 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
|
|
08.05.2008 14:17 |
|
|
Nicolas SOUCHON
Wizard
  
Registration Date: 27.06.2007
Posts: 737
Level: 29 [?]
Experience: 239,647
Next Level: 242,754
 |
|
| RE: Drag & Drop with 2 TreeViews |
 |
try to do it on the viewport
__________________ Nicolas
|
|
08.05.2008 15:41 |
|
|
T1c4L
Assistant
Registration Date: 25.04.2008
Posts: 4
Level: 4 [?]
Experience: 88
Next Level: 100
Thread Starter
 |
|
| 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
|
|
08.05.2008 17:28 |
|
|
Nicolas SOUCHON
Wizard
  
Registration Date: 27.06.2007
Posts: 737
Level: 29 [?]
Experience: 239,647
Next Level: 242,754
 |
|
| RE: Drag & Drop with 2 TreeViews |
 |
look at doc: QAbstractScrollArea::setViewport to customize the viewport
__________________ Nicolas
|
|
09.05.2008 19:49 |
|
|
T1c4L
Assistant
Registration Date: 25.04.2008
Posts: 4
Level: 4 [?]
Experience: 88
Next Level: 100
Thread Starter
 |
|
| 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"
|
|
13.05.2008 10:26 |
|
|
|
|
|
 |
views today: 5.544 | views yesterday: 12.104 | total views: 10.251.017
Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -
SMS Gewinnspiel -
Hotels -
Stadtpläne -
Branchenbuch & Stadtplan
|