pyqt drop to open a file

G

Guest

Hi,

anyone can give a simple example or a link on how to use 'drop' with
pyqt.

what I'm looking for is drop a file to main widget then program get
the path\filename

something like: main_widget set to accept 'drop event', set filename
when 'drop event happens' then the filename is path\filename of the
file user drag from any location to main widget.


Thanks for any help.

-Ray
 
A

Albert Hopkins

Hi,

anyone can give a simple example or a link on how to use 'drop' with
pyqt.

what I'm looking for is drop a file to main widget then program get
the path\filename

something like: main_widget set to accept 'drop event', set filename
when 'drop event happens' then the filename is path\filename of the
file user drag from any location to main widget.

Google is your friend:

http://www.zetcode.com/tutorials/pyqt4/dragdrop/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top