[QGIS-trac] Re: [Quantum GIS] #2793: Drag and Drop regression on Mac OSX

Quantum GIS qgis at qgis.org
Sun Mar 6 12:54:56 EST 2011


#2793: Drag and Drop regression on Mac OSX
------------------------------------------------+---------------------------
   Reporter:  springmeyer                       |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  GUI                               |            Version:  Trunk        
   Keywords:  startup document open             |   Platform_version:               
   Platform:  OS X                              |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
Changes (by kyngchaos):

  * keywords:  => startup document open
  * must_fix:  No => Yes


Comment:

 Hah!  I found a reference in QApplication::macEventFilter, though not used
 in QGIS, that Mac events are handled differently in Qt Cocoa:

 > Cocoa uses a different event system which means this function is NOT
 CALLED when building Qt against Cocoa. If you want similar functionality
 subclass NSApplication and reimplement the sendEvent: message to handle
 all the NSEvents. You also will need to to instantiate your custom
 NSApplication before creating a QApplication. See Apple's NSApplication
 Reference for more information.

 So, the openDocumentsAEHandler() setup in main.cpp may not be called using
 Qt Cocoa.  This is way beyond me to try to fix.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2793#comment:6>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list