Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.2.x
-
None
-
Qt 4.8, PySide 1.1.1, OS X 10.7.4
Description
The following code produces the error at the first user input in the terminal
objc[17123]: Object 0x7faecb42e890 of class NSConcreteMapTable autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
import sys import threading from PySide.QtCore import * from PySide.QtGui import * from PySide.QtUiTools import QUiLoader app = QApplication(sys.argv) loader = QUiLoader() file = QFile("./mainwindow.ui") file.open(QFile.ReadOnly) myWidget = loader.load(file) file.close() btn = myWidget.findChild(QPushButton,"btn") btn.setText("Knopfi :)") myWidget.show() class MyThread ( threading.Thread ): def run (s): while(True): button = raw_input() btn.setText(button) sys.stdout.write(button) sys.stdout.flush() myThread = MyThread () myThread.start() app.exec_()