[Qt-interest] Getting QListView::dragEnterEvent() & dropEvent() QtDesigner 4.4.1

Jason H scorp1us at yahoo.com
Mon Jun 6 18:29:56 CEST 2011


You'll get a mime object which will have the dropped object. It'll be a url of whatever directory is being dropped.

It's pretty simple really.



________________________________
From: Sahana Bhaskar <Sahana_Bhaskar at infosys.com>
To: "qt-interest at qt.nokia.com" <qt-interest at qt.nokia.com>
Sent: Monday, June 6, 2011 10:37 AM
Subject: [Qt-interest] Getting QListView::dragEnterEvent() & dropEvent() QtDesigner 4.4.1


I'm trying to implement a drag & drop capability where the user can drag a file/folder from the left pane shown below to the right pane and then have the file information saved for the next session. My problem is that I can't quite figure out how to do this.
 
Say I drag d: from the main list to explorer. I need it to be saved somewhere so that the next time I open the application the d: in left must not disappear but still be there. I don’t know where to save what has been dragged into the left pane.  These are qfiledialog class and qsidebar  QFileListBox classes. 
 
 
 
Ps: these are my windows:
 
 
Thanks,
Sahana 
 
 
 
 
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS*** 
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110606/920810a3/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 14879 bytes
Desc: image001.png
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110606/920810a3/attachment.png 


More information about the Qt-interest-old mailing list