Hi,
I'm getting a segfault when working with resource files. Basically it
seems to work as I can see the main window including my widget
flashing up for parts of a second. The segfault happens inside the
exec_() method of the QtGui.QApplication object. "gui_resources" has
been compiled using "pyside-rcc". It can be read without any errors
(so, no Bug 901 here).
Here is my source code:
8<==================================
import os
import sys
from PySide import QtGui, QtCore, QtUiTools
import gui_resources
class Gui_Qt(QtGui.QMainWindow):
def __init__(self, parent=None):
super(Gui_Qt, self).__init__(parent)
lLoader = QtUiTools.QUiLoader()
lFile = QtCore.QFile(":/forms/mywidget.ui")
lFile.open(QtCore.QFile.ReadOnly)
self.customwidget = lLoader.load(lFile, self)
lFile.close()
self.setCentralWidget(self.customwidget)
class CMain:
def __init__(self):
self.__mApp = QtGui.QApplication(sys.argv)
self.__mWindow = Gui_Qt()
def run(self):
self.__mWindow.show()
lReturn = self.__mApp.exec_()
sys.exit(lReturn)
def main():
lMain = CMain()
lMain.run()
if __name__ == "__main__":
main()
8<==================================
My system configuraiton is as follows:
* Debian GNU/Linux testing/unstable on amd64
Here are the packages that I have installed:
8<==================================
% dpkg -l | grep -i pyside
ii libpyside-dev 1.0.5-1
ii libpyside1.0 1.0.5-1
ii pyside-tools 0.2.11-1
ii python-pyside 1.0.5-1
ii python-pyside.phonon 1.0.5-1
ii python-pyside.qtcore 1.0.5-1
ii python-pyside.qtdeclarative 1.0.5-1
ii python-pyside.qtgui 1.0.5-1
ii python-pyside.qthelp 1.0.5-1
ii python-pyside.qtnetwork 1.0.5-1
ii python-pyside.qtopengl 1.0.5-1
ii python-pyside.qtscript 1.0.5-1
ii python-pyside.qtsql 1.0.5-1
ii python-pyside.qtsvg 1.0.5-1
ii python-pyside.qttest 1.0.5-1
ii python-pyside.qtuitools 1.0.5-1
ii python-pyside.qtwebkit 1.0.5-1
ii python-pyside.qtxml 1.0.5-1
% apt-cache policy python-pyside
python-pyside:
Installed: 1.0.5-1
Candidate: 1.0.5-1
Version table:
*** 1.0.5-1 0
50 http://ftp.at.debian.org/debian/ unstable/main amd64 Packages
100 /var/lib/dpkg/status
8<==================================
Anything wrong here at first glance?
Any help appreciated a lot! Best regards,
Rainer Poisel
_______________________________________________
PySide mailing list
PySide@lists.pyside.org
http://lists.pyside.org/listinfo/pyside