[PyQt] question on drag and drop
    danny 
    shevitz at lanl.gov
       
    Wed Oct 20 17:18:12 BST 2010
    
    
  
> whenever i encounter situations where i'm going to reimplement virtual 
> methods, i will usually take a look at the qt source at some point. i 
> will look at the details of the default implementation, and also how the 
> method is used internally by other methods. if the method is part of an 
> abstract class, i might also look at how qt has reimplemented it in its 
> own subclasses (for example, by comparing qtreeview with qtreewidget). 
> why waste time designing everything from scratch when the kindly trolls 
> have already done most of it for me?
> 
> the qt documentation is good, but there is no substitute for reading the 
> source when you really need to know how things work.
I have just finally gotten to the point where I know enough to be able to use the
source code :-). I discovered how to modify the internal default drop action
using the undocumented setDefaultDropAction on the view, by looking at the
source code. Baby steps.
D 
    
    
More information about the PyQt
mailing list