Re: [PyQt] QTreeWidgetItem.addChild() no longer keeping references
On Mon, 4 Mar 2013 23:22:04 -0500, Luke Campagnola lcamp...@email.unc.edu wrote: Howdy, I have found that somewhere between 4.8.3 and 4.9.6, calling QTreeWidgetItem.addChild(item) no longer creates a reference to the specified item (or, at least that is my best guess as to what's going on). I noticed this because I often assign custom attributes to these items and found that the attributes go missing under 4.9.6 if I don't keep an explicit reference to the item. Here's an example from 4.8.3: from PyQt4.QtGui import * app = QApplication([]) tree = QTreeWidget() item = QTreeWidgetItem([Item]) item.attr = test tree.invisibleRootItem().addChild(item) del item import gc gc.collect() 0 tree.topLevelItem(0).attr 'test' ..and the same under 4.9.6: from PyQt4.QtGui import * app = QApplication([]) tree = QTreeWidget() item = QTreeWidgetItem([Item]) item.attr = test tree.invisibleRootItem().addChild(item) del item import gc gc.collect() 0 tree.topLevelItem(0).attr Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'QTreeWidgetItem' object has no attribute 'attr' Questions are: 1) Is this a bug, or was the change deliberate? 2) Does this apply only to QTreeWidgetItem, or are there similar changes elsewhere I should watch out for? I think it's an old bug (specifically with invisibleRootItem()) exposed by a recent SIP fix. Fixed in tonight's PyQt snapshot. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt4 issue
Hello, here is the extract. Checking to see if the QtTest module should be built... g++ -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I. - I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtTest - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtTest.cpp -o cfgtest_QtTest -L/usr/local/Qt-5.0.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib -lQt5Test - L/usr/local/Qt-5.0.1/lib -lQt5Core -lpthread -lpthread Checking to see if the QtWebKit module should be built... g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. - I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtWebKit - I/usr/local/Qt-5.0.1/include/QtWebKitWidgets -I/usr/local/Qt-5.0.1/include/QtCore - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtWebKit.cpp - o cfgtest_QtWebKit -L/usr/local/Qt-5.0.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib - lQt5WebKit -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Network -L/usr/local/Qt-5.0.1/lib - lQt5Core -lpthread -lpthread -lQt5Gui -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Core - lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread /tmp/ccmtGOAm.o: In function `main': cfgtest_QtWebKit.cpp:(.text.startup+0x19): undefined reference to `QWebPage::QWebPage(QObject*)' collect2: error: ld returned 1 exit status Regards, Detlev On Monday 04 March 2013, 18:52:45 Phil Thompson wrote: On Mon, 4 Mar 2013 19:50:41 +0100, Detlev Offenbach det...@die-offenbachs.de wrote: Hi Phil, I found the cause of my issue. Actually there are two. 1. configure.py doesn't detect, that the wrapper for QtWebkit should be built. 2. That left an old wrapper for QtWebkit in my installation directory, which caused the issue (a mix of compilations doesn't work). So I think, fixing 1. will get rid of 2 automatically. All this was done with Qt 5.0.1 on Linux (openSUSE 12.2) and Mac OS X Mountain Lion. Can you run configure.py with --verbose so that you can see why it doesn't think QtWebKit is available? Phil-- *Detlev Offenbach* det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt4 issue
Am Dienstag, 5. März 2013, 18:44:24 schrieb Detlev Offenbach: Hello, here is the extract. Checking to see if the QtTest module should be built... g++ -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I. - I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtTest - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtTest.cpp -o cfgtest_QtTest -L/usr/local/Qt-5.0.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib -lQt5Test - L/usr/local/Qt-5.0.1/lib -lQt5Core -lpthread -lpthread Checking to see if the QtWebKit module should be built... g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. - I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtWebKit - I/usr/local/Qt-5.0.1/include/QtWebKitWidgets -I/usr/local/Qt-5.0.1/include/QtCore - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtWebKit.cpp - o cfgtest_QtWebKit -L/usr/local/Qt-5.0.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib - lQt5WebKit -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Network -L/usr/local/Qt-5.0.1/lib - lQt5Core -lpthread -lpthread -lQt5Gui -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Core - lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread /tmp/ccmtGOAm.o: In function `main': cfgtest_QtWebKit.cpp:(.text.startup+0x19): undefined reference to `QWebPage::QWebPage(QObject*)' collect2: error: ld returned 1 exit status Hmm, have you checked the symbols in your libQt5WebKit.so? objdump -T libQt5WebKit.so | grep QWebPage | grep QObject It should show: _ZN8QWebPageC2EP7QObject Feeding to c++filt results in: QWebPage::QWebPage(QObject*) Any other result is an issue down under.. Cheers, Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt4 issue
Here's my result: objdump -T libQt5WebKit.so | grep QWebPage | grep QObject 004a2530 gDF .text 0935 Base _ZN15QWebPageAdapter26dynamicPropertyChangeEventEP7QObjectP27QDynamicPropertyChangeEvent 004a3770 gDF .text 002a Base _ZN15QWebPageAdapter17setSystemTrayIconEP7QObject Interestingly, if I do the same for libQt5WebKitWidgets.so I get what you reported: objdump -T libQt5WebKitWidgets.so | grep QWebPage | grep QObject DF *UND* _ZN15QWebPageAdapter17setSystemTrayIconEP7QObject DF *UND* _ZN15QWebPageAdapter26dynamicPropertyChangeEventEP7QObjectP27QDynamicPropertyChangeEvent 00027570 gDF .text 00a4 Base _ZN8QWebPageC1EP7QObject 00027570 gDF .text 00a4 Base _ZN8QWebPageC2EP7QObject On 6 March 2013 00:22, Hans-Peter Jansen h...@urpla.net wrote: Am Dienstag, 5. März 2013, 18:44:24 schrieb Detlev Offenbach: Hello, here is the extract. Checking to see if the QtTest module should be built... g++ -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I. - I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtTest - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtTest.cpp -o cfgtest_QtTest -L/usr/local/Qt-5.0.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib -lQt5Test - L/usr/local/Qt-5.0.1/lib -lQt5Core -lpthread -lpthread Checking to see if the QtWebKit module should be built... g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. - I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtWebKit - I/usr/local/Qt-5.0.1/include/QtWebKitWidgets -I/usr/local/Qt-5.0.1/include/QtCore - I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE cfgtest_QtWebKit.cpp - o cfgtest_QtWebKit -L/usr/local/Qt-5.0.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.1/lib - lQt5WebKit -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Network -L/usr/local/Qt-5.0.1/lib - lQt5Core -lpthread -lpthread -lQt5Gui -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Core - lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread /tmp/ccmtGOAm.o: In function `main': cfgtest_QtWebKit.cpp:(.text.startup+0x19): undefined reference to `QWebPage::QWebPage(QObject*)' collect2: error: ld returned 1 exit status Hmm, have you checked the symbols in your libQt5WebKit.so? objdump -T libQt5WebKit.so | grep QWebPage | grep QObject It should show: _ZN8QWebPageC2EP7QObject Feeding to c++filt results in: QWebPage::QWebPage(QObject*) Any other result is an issue down under.. Cheers, Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Are the older versions still available?
Source forge only goes back as far as 4.9.4 but I'm looking for an even older version (4.7.3-1, 4.8.3). Are they still available somewhere? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt