Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » Drag & Drop with 2 TreeViews » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page Drag & Drop with 2 TreeViews
Author
Post « Previous Thread | Next Thread »
T1c4L
Assistant


Registration Date: 25.04.2008
Posts: 4

Level: 4 [?]
Experience: 85
Next Level: 100

15 points of experience needed for next level

Drag & Drop with 2 TreeViews Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 T1c4L is offline Send an Email to T1c4L Search for Posts by T1c4L Add T1c4L to your Buddy List
Nicolas SOUCHON
Wizard


Registration Date: 27.06.2007
Posts: 726

Level: 29 [?]
Experience: 235,469
Next Level: 242,754

7,285 points of experience needed for next level

RE: Drag & Drop with 2 TreeViews Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

try to do it on the viewport

__________________
Nicolas
08.05.2008 15:41 Nicolas SOUCHON is online Send an Email to Nicolas SOUCHON Search for Posts by Nicolas SOUCHON Add Nicolas SOUCHON to your Buddy List
T1c4L
Assistant


Registration Date: 25.04.2008
Posts: 4

Level: 4 [?]
Experience: 85
Next Level: 100

15 points of experience needed for next level

Thread Starter Thread Started by T1c4L
RE: Drag & Drop with 2 TreeViews Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 T1c4L is offline Send an Email to T1c4L Search for Posts by T1c4L Add T1c4L to your Buddy List
Nicolas SOUCHON
Wizard


Registration Date: 27.06.2007
Posts: 726

Level: 29 [?]
Experience: 235,469
Next Level: 242,754

7,285 points of experience needed for next level

RE: Drag & Drop with 2 TreeViews Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

look at doc: QAbstractScrollArea::setViewport to customize the viewport

__________________
Nicolas
09.05.2008 19:49 Nicolas SOUCHON is online Send an Email to Nicolas SOUCHON Search for Posts by Nicolas SOUCHON Add Nicolas SOUCHON to your Buddy List
T1c4L
Assistant


Registration Date: 25.04.2008
Posts: 4

Level: 4 [?]
Experience: 85
Next Level: 100

15 points of experience needed for next level

Thread Starter Thread Started by T1c4L
RE: Drag & Drop with 2 TreeViews Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 T1c4L is offline Send an Email to T1c4L Search for Posts by T1c4L Add T1c4L to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » Drag & Drop with 2 TreeViews

views today: 9.104 | views yesterday: 17.520 | total views: 10.242.473


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich