[PyQt] segmentation fault
    lucaberto at libero.it 
    lucaberto at libero.it
       
    Thu Oct 18 10:17:36 BST 2007
    
    
  
Hello Again at all:
i get segmentation fault and i can't debug in this script:
class Form(QWidget, Ui_Form):
    """
    Class documentation goes here.
    """
    def __init__(self, parent = None):
        """
        Constructor
        """
        QWidget.__init__(self, parent)
        self.setupUi(self)
        self.modello = QtGui.QDirModel()
        self.treeWidget.setModel(self.modello)
    
    @pyqtSignature("")
    def on_pushButton_clicked(self):
        """
        Slot documentation goes here.
        """
        # TODO: not implemented yet
       # raise "Not implemented yet"
        self.file_information()
        
    #@pyqtSignature("QTreeWidgetItem*, int")
    #def on_treeWidget_itemClicked(self, item, column):
      #  """
        #Slot documentation goes here.
        #"""
        # TODO: not implemented yet
        #raise "Not implemented yet"
       # self.file_information()
        
    def file_information(self):
        val = self.treeWidget.currentItem()
        indice = self.treeWidget.indexFromItem(val, 0)
in this instruction :
indice = self.treeWidget.indexFromItem(val, 0)
Regards
Luca       
    
    
More information about the PyQt
mailing list