[QGIS-trac] Re: [Quantum GIS] #3236: Cannot determine the type of QgsComposerItem

Quantum GIS qgis at qgis.org
Mon Nov 22 08:08:14 EST 2010


#3236: Cannot determine the type of QgsComposerItem
------------------------------------------------+---------------------------
   Reporter:  anitagraser                       |              Owner:  borysiasty   
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Python plugins and bindings       |            Version:  Trunk        
   Keywords:                                    |   Platform_version:               
   Platform:  Debian                            |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------

Comment(by NathanW):

 Thanks.  I'm doing some testing now, not sure how much help it will be but
 if you cast in python using something like:

 label = selectedComposerItems()[0] /* The first label on the composer */
 label.__class__ = qgis.core.qgscomposerlabel

 You can call label.displayText() fine.  The above will still crash
 sometimes even with the code I added to the SIP.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3236#comment:3>
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