[PyQt] Debugging SIP wrapped C++ code with Visual Studio 2008
Hi, does somebody know how to debug SIP wrapped C++ code with Visual Studio 2008? I have build a custom QWidget in C++ and wrapped it with SIP. I use this widget from Python with PyQt. I have figured out, that I need python_d.lib to compile the widget in debug mode and how to create python_d.lib. In the VS 2008 project Debugging configuration I use the following configuration: application: C:\Python26\python.exe arguments: the Python script, which loads the SIP generated module working directory: The directory of the Python script The Python script crashes when it tries to load the SIP generated module and prints the following error message: Fatal Python error: Interpreter not initialized (version mismatch?) With Visual Studio 2003, Python 2.4 and swig I used this approach successfully to debug non Qt C++ components. Regards Magnus ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] looking for a QPropertyEditor
Hello, I am looking for a QPropertyEditor just like the one in the QDesigner. For C++ I found this posting http://lists.trolltech.com/qt-interest/2008-10/msg00596.html where the two following C++ implementations were discussed: http://qt-apps.org/content/show.php/QPropertyEditor?content=68684 (LGPL) http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Widgets/qtpropertybrowser/ (Qt commercial solution) Does somebody know of a PyQt implementation? Regards Magnus ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Move a QDockWidget between two QMainWindows
Hello, is there a way to move a QDockWidget between two QMainWindows? In the sample code I have two QLabels wrapped into two QDockwidgets and I want to be able to move them from one QMainWindow to the other QMainWindow. But it doesen't work. What is missing in the code? Regards Magnus import sys from PyQt4.QtCore import Qt from PyQt4.QtGui import QApplication, QMainWindow, QLabel, QDockWidget app = QApplication(sys.argv) mw1 = QMainWindow() mw2 = QMainWindow() l1 = QLabel(Label 1) l2 = QLabel(Label 2) dw1 = QDockWidget(l1) dw1.setWidget(l1) dw2 = QDockWidget(l2) dw2.setWidget(l2) mw1.addDockWidget(Qt.LeftDockWidgetArea, dw1) mw1.addDockWidget(Qt.RightDockWidgetArea, dw2) mw1.show() mw2.show() sys.exit(app.exec_()) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt 4.5 snapshot build (windows and mac)
I was not aware that PyQt goes with mingw32 (what about VC9?). using mingw which came with Qt4.5 I could build SIP and PyQt (still compiling) successfully. this article was really helpful: http://diotavelli.net/PyQtWiki/BuildPyQt4Windows There is a build in binary incompatibility between the comercial version of Qt and the open source version on Windows. The open source version is built with Mingw and the comercial version is built with VC. If you want to use Qt with VC you have to buy a comercial licence. And so it is also for PyQt. Regards Magnus ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] failed to install comercial PyQt
Thank you for the hint. With Python 2.6 I can compile PyQt-win-commercial-4.4.4 with VS2008. But still I don't understand it. What do you mean with Python 2.5 expects VS2003 and Python 2.6 expects VS2008? How could there be a dependency between Python and VS? Magnus 2009/5/5, V. Armando Solé s...@esrf.fr: I do not know if it will solve your problem, but in any case you can save yourself some future problems if you use python 2.6. It already expects VS2008 while python 2.5 expects VS2003. Armando ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] failed to install comercial PyQt
Hello, I fail to install the comercial version of PyQt. That's my configuration: - Windows XP, Windows Vista - Python 2.5.4 - Visual Studio 2008 - qt-win-commercial-4.4.3-vs2008 - sip-4.7.9 - PyQt-win-commercial-4.4.4 I did the following steps (Python, Visual Studio 2008 and Qt are allready installed): 1. sip-4.7.9 python configure.py 2. sip-4.7.9 nmake 3. sip-4.7.9 nmake install 4. copy the file pyqt-commercial.sip to the directory PyQt-win-commercial-4.4.4\sip 5. PyQt-win-commercial-4.4.4 python configure.py Then I got an error, that sip.exe could not be startet because of the missing dll MSVCR90.dll If I add C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT to my PATH, because there I found the missing dll, I got the error for sip.exe: R6034 An application has made an attempt to load the C runtime library incorrectly. Thanks for any help Magnus ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] failed to install comercial PyQt
Hello, I fail to install the comercial version of PyQt. That's my configuration: - Windows XP, Windows Vista - Python 2.5.4 - Visual Studio 2008 - qt-win-commercial-4.4.3-vs2008 - sip-4.7.9 - PyQt-win-commercial-4.4.4 I did the following steps (Python, Visual Studio 2008 and Qt are allready installed): 1. sip-4.7.9 python configure.py 2. sip-4.7.9 nmake 3. sip-4.7.9 nmake install 4. copy the file pyqt-commercial.sip to the directory PyQt-win-commercial-4.4.4\sip 5. PyQt-win-commercial-4.4.4 python configure.py Then I got an error, that sip.exe could not be startet because of the missing dll MSVCR90.dll If I add C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT to my PATH, because there I found the missing dll, I got the error for sip.exe: R6034 An application has made an attempt to load the C runtime library incorrectly. Thanks for any help Magnus ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] SIP: Where is the generated python wrapper code?
Hello, I have used SWIG for several years. Now I want to change to SIP. But I did not manage to run even the simplest example from the reference guide. When I tried the Word example there was a lot of C++ Code created, but no Python wrapper code. Where is the generated Python wrapper code? I am using Pythonxy on Windows XP. Regards, Magnus Benjes___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt