Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sorry, I've been unable to reproduce the segfaults you are seeing. Here's the full source code of the application I tried to reproduce your crash with (Qt 4.8.1, PyQt 4.9.1, Python 2.7.3, Kubuntu Precise):</p> <pre><code>#!/usr/bin/env python import sys from PyQt4 import QtCore, QtGui class AppStatus(object): def __init__(self): self.timer = None class ExperimentAnalyzer(QtGui.QMainWindow): def __init__(self, parent=None): super(ExperimentAnalyzer, self).__init__(parent) elayout = QtGui.QVBoxLayout() self.count = 0 self.appStatus = AppStatus() everything = QtGui.QWidget(self) everything.setLayout(elayout) button = QtGui.QPushButton("Start/stop timer", self) self.connect(button, QtCore.SIGNAL("clicked()"), self.playOrPause) elayout.addWidget(button) button = QtGui.QPushButton("Load experiment", self) self.connect(button, QtCore.SIGNAL("clicked()"), self.loadExperiment) elayout.addWidget(button) self.setCentralWidget(everything) def loadExperiment(self): directory = QtGui.QFileDialog.getExistingDirectory(self, "Select Directory") def nextFrame(self): self.count += 1 print self.count def playOrPause(self): if self.appStatus.timer is None: self.appStatus.timer = QtCore.QTimer(self) self.appStatus.timer.connect(self.appStatus.timer, QtCore.SIGNAL("timeout()"), self.nextFrame) self.appStatus.timer.start(40) else: self.appStatus.timer.stop() self.appStatus.timer = None if __name__ == "__main__": app = QtGui.QApplication(sys.argv) mainwin = ExperimentAnalyzer(None) mainwin.show() app.exec_() </code></pre> <p>If this test application doesn't crash for you, then the problem is in code that you haven't shown us.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload