Re: [PyQt] QTreeWidgetItem.addChild() no longer keeping references

2013-03-05 Thread Phil Thompson
On Mon, 4 Mar 2013 23:22:04 -0500, Luke Campagnola 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 beca

Re: [PyQt] PyQt Error

2013-03-04 Thread Phil Thompson
On Mon, 4 Mar 2013 07:37:35 -0500, Adam Kimbrough wrote: > Hello, > > So far, I have completely and successfully installed SIP v4.14.4, the qt > libraries, and am now trying to install PyQt. I am currently entering in > the following code into terminal: " python configure.py -q > /usr/bin/qmake-4

Re: [PyQt] PyQt4 issue

2013-03-04 Thread Phil Thompson
On Sun, 03 Mar 2013 19:15:40 +0100, Detlev Offenbach wrote: > Hello, > > I am observing a strange issue with latest PyQt4 and Qt 5.0.1. The later > was compiled by > myself. Setting the URL of a QWebView with QWebView.setUrl() results in a > seg fault or > other errors. Executing these steps in

[PyQt] ANN: PyQt v4.10 and SIP v4.14.4 Released

2013-03-03 Thread Phil Thompson
PyQt v4.10 and SIP v4.14.4 have been released. PyQt will now build against Qt v5.0. Features introduced in Qt v5.0 and not present in Qt v4 are not supported (they will be in PyQt v5). The SIP release is a minor bug fix release. However it does introduce a potential incompatibility in the use of

Re: [PyQt] Possible bug: Instantiating QWebPage results in segfault

2013-03-02 Thread Phil Thompson
On Fri, 01 Mar 2013 23:44:51 -0700, Ken Kinder wrote: > Howdy. I may have found a bug, but because simple script will cause a > segfault: > > #!/usr/bin/env python > > import sys > from PyQt4 import Qt > from PyQt4.QtWebKit import QWebPage > > a = Qt.QApplication(sys.argv) >

Re: [PyQt] Problem Installing SIP-4.14.3

2013-02-28 Thread Phil Thompson
On Wed, 27 Feb 2013 20:48:33 -0800 (PST), Richard Lang wrote: > Help!  > > I'm trying to create GUI applications using Python v3.3.0, > PyQt4 v4.9.6 on my windows 7 SP1 64bit OS laptop using SIP v4.14.3 and > GnuWin32 > Make v3.81 for compiling bindings. > I am not sure if they are 32bit compati

Re: [PyQt] Next Releases

2013-02-26 Thread Phil Thompson
On Tue, 26 Feb 2013 10:16:43 +0100, Erik Janssens wrote: > what kind of changes to the thread support ?? Threads no longer have to be "registered" with SIP, instead TLS is allocated when it is seen to be needed. Also better error handling if TLS allocation fails. > do you have links to changeset

Re: [PyQt] PyQt-Bug

2013-02-26 Thread Phil Thompson
On Tue, 26 Feb 2013 10:07:43 +0100, "Dr. Waetzold Plaum" wrote: > Hi, > > here is a bug concerning probably PyQt or the underlying Qt library. (Or > some silly mistake of mine ;-)) See the sourcecode for details. The bug is > essencial for me, for choosing between Qt and Gtk/Cairo Silly mista

[PyQt] Next Releases

2013-02-26 Thread Phil Thompson
I plan to make the next releases fo SIP, PyQt and QScintilla in the next few days. I've made some small changes to the thread support very recently so I would suggest anybody who makes heavy use of threads test the current snapshots to make sure nothing is broken. Phil

Re: [PyQt] Building multiarch on Mac OS X

2013-02-22 Thread Phil Thompson
On Thu, 21 Feb 2013 19:58:35 +0100, Jeremy Sanders wrote: > I'm trying to build PyQt in Mac OS X 10.7.5, using i386/x86_64 and a > minimum OS version of 10.6. > > I've rebuilt Qt to use i386 and x86_64. I've configured PyQt 4.9.6 like > this: > > $ python configure.py -c -j 3 CFLAGS+='-mmacos

Re: [PyQt] [BUG] No exception reports in a QThread with Python 3

2013-02-20 Thread Phil Thompson
On Sun, 3 Feb 2013 14:55:51 +, Richie Ward wrote: > If you run the following code with Python 3, you will not recieve a > exception; dispite it being blatently wrong. > import sys > from PyQt4 import QtGui, QtCore > > class FooThread(QtCore.QThread): > > def run(self): > beeswax

Re: [PyQt] PyKDE4 OpenUrlArguments metaData ( QMap ) is uneditable

2013-02-14 Thread Phil Thompson
On Thu, 14 Feb 2013 15:31:41 +0100, "Daniel Nagy" wrote: > Original-Nachricht >> Datum: Wed, 13 Feb 2013 09:45:31 + >> Von: Phil Thompson >> An: Daniel Nagy >> CC: pyqt@riverbankcomputing.com >> Betreff: Re: [PyQt] PyKDE4 OpenUrlA

Re: [PyQt] PyKDE4 OpenUrlArguments metaData ( QMap ) is uneditable

2013-02-13 Thread Phil Thompson
On Wed, 13 Feb 2013 00:51:05 +0100, "Daniel Nagy" wrote: > Hi, > > there is a PyKDE4-datatype at > http://api.kde.org/pykde-4.7-api/kparts/KParts.OpenUrlArguments.html > and I don't seem to be able to modify the QMap "metaData" property. > From C++ you can easily do that, but not from python. >

Re: [PyQt] QSignalMapper (again)

2013-02-09 Thread Phil Thompson
On Tue, 05 Feb 2013 14:02:03 +0100, Giuseppe Corbelli wrote: > We've been about the same subject before, see > > http://python.6.n6.nabble.com/Error-in-calling-QSignalMapper-bases-td1793973.html > > I'm trying to run pylint on some PyQt (QtCore-only) code and stumbled into > http://www.logilab.o

Re: [PyQt] Version strings in Qt 4.8 PyQt 4.9

2013-02-07 Thread Phil Thompson
On Wed, 6 Feb 2013 14:53:39 -0800, David Cortesi wrote: >>> Everything seems to work correctly except this small thing: it used to >>> be that I could get version strings from Qt.PYQT_VERSION_STR and >>> Qt.qVersion() but now those attributes of Qt are undefined. >>> >>> Does this indicate that I'

Re: [PyQt] Version strings in Qt 4.8 PyQt 4.9

2013-02-06 Thread Phil Thompson
On Tue, 5 Feb 2013 15:55:54 -0800, David Cortesi wrote: > I had been running fine (Mac OS 10.6, PyQt 4.6 and Qt 4.6 I think). > Today, in order to hopefully fix a QWebKit problem, I installed Qt > 4.8.4 for Mac OS, > followed immediately by installing the latest stable SIP and PyQt4 from > source.

Re: [PyQt] QAxBase.dynamicCall - calling convention

2013-02-05 Thread Phil Thompson
On Tue, 05 Feb 2013 16:23:43 +0100, "Frank Hempel" wrote: > Hello, > > I'm wondering how to call a function of an activex control with more the 8 > parameters. Regarding the Qt doc the QAxBase->dynamicCall() can be called > in two ways, with at max 8 separate parameters or with a list of variable

[PyQt] ANN: 64-bit Installer for PyQt v4.10-rc1, Qt v5.0.1, Python v3.3

2013-02-03 Thread Phil Thompson
I've created a 64-bit Windows installer containing current PyQt, SIP and QScintilla snapshots and Qt v5.0.1. This is for Python v3.3. It includes QWebKit, support for OpenSSL and the usual collection of SQL drivers. It also includes accessibility support. I'd appreciate it if people could try it

Re: [PyQt] Error using 'make' while installing PyQt-mac-gpl-4.9.6 on mac.

2013-02-02 Thread Phil Thompson
On Sat, 2 Feb 2013 10:11:43 -0800, Jonathan Rogers wrote: > After running 'python configure.py' (successfully) i ran the make command > in the terminal. I received this error: > > /Users/jonathanrogers/Desktop/PyQt-mac-gpl-4.9.6/sip/QtCore/qstring.sip:205:35: > error: > use of undeclared i

Re: [PyQt] PyQT4 and Qt Embedded 4.8.4

2013-02-01 Thread Phil Thompson
On Fri, 1 Feb 2013 17:01:53 +0900, IhatemyISP wrote: > I'm trying to compile PyQT against Qt/E and I've run into a problem. Here's > the output I'm getting: > > g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG > -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB > -I. -

Re: [PyQt] Qt5 status

2013-01-28 Thread Phil Thompson
On Mon, 28 Jan 2013 20:31:15 +0100, Wojciech Daniło wrote: > Thank you. I understeand that you cannot say when it will be available, but > could you estimate it? Say for example in 6-10 months from now or something > like that? :) I would be disappointed if it was as long as 6 months. Phil _

[PyQt] ANN: pogles v0.3 Released

2013-01-28 Thread Phil Thompson
pogles v0.3 has been released. This includes a complete set of API documentation. There are some incompatible API changes - see the NEWS file. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/py

[PyQt] ANN: SIP v4.14.3 Released

2013-01-28 Thread Phil Thompson
SIP v4.14.3 has been released. This is mainly a minor feature release required by pogles v0.3. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 Class Reference.

2013-01-28 Thread Phil Thompson
On Mon, 28 Jan 2013 14:33:55 +0100, Vincent Vande Vyvre wrote: > Le 28/01/13 14:07, Phil Thompson a écrit : >> On Mon, 28 Jan 2013 18:25:57 +0530, Manoj Kumar >> wrote: >>> Hello , >>> >>> I'm unable to access this website for the past co

Re: [PyQt] PyQt4 Class Reference.

2013-01-28 Thread Phil Thompson
On Mon, 28 Jan 2013 18:25:57 +0530, Manoj Kumar wrote: > Hello , > > I'm unable to access this website for the past couple of days > --PyQt4 class > reference.Could > someone please tell me if it has been moved to anothe

Re: [PyQt] Qt5 status

2013-01-28 Thread Phil Thompson
On Mon, 28 Jan 2013 00:29:15 +0100, Wojciech Daniło wrote: > Hi! I'm developing a big project with my team and we want to use Python as > a binding to Qt library. > Using the qtquick2 is crucial for us. Does PyQt support using the new qt5 > or at least the qtquick binding? > > (according to > htt

Re: [PyQt] Bug report, compiling latest snapshots against Qt5 on Windows

2013-01-25 Thread Phil Thompson
On Fri, 25 Jan 2013 00:34:14 +0100, mathias.b...@gmx.de wrote: > Hi, > > I'm getting errors running PyQt's configure.py. > Cause: > Starting in line 954, the file "sipconfig.py" of the sip module contains: > > if sys.platform == "win32" and "shared" in > self.config.qt_winconfig.s

Re: [PyQt] Positive report about recent SIP snapshot (dc06058c99dd)

2013-01-23 Thread Phil Thompson
On Wed, 23 Jan 2013 16:10:12 +0200, Umit Oztosun wrote: > Hello, > > I am maintaining a semi-complex PyQt based project, which regularly uses > creation and destruction of widgets containing tableviews fed by custom > models. I was experiencing occassional crashes during desctruction of > widgets

Re: [PyQt] QDBusPendingCall issue with Qt v4.4.3

2013-01-15 Thread Phil Thompson
On Mon, 14 Jan 2013 23:20:43 +0100, Hans-Peter Jansen wrote: > Hi Phil, > > as I support some quite old distributions on build service, those builds > shake out some compatibility issues. > > This time, it's related to QDBusPendingCall, which seems to be missing in > Qt 4.4.3 > at least: Should

Re: [PyQt] QGestureRecognizer Segmentation Fault

2013-01-11 Thread Phil Thompson
On Thu, 10 Jan 2013 11:34:50 +, Robert Kent wrote: > Hi everyone, > > I've been implementing some mouse gestures and have discovered what may be > a bug with QGestureRecognizer. Everything functions correctly until the > application exits at which point a segmentation fault is thrown. This se

Re: [PyQt] Issue with latest PyQt4 and Qt5

2013-01-08 Thread Phil Thompson
On Mon, 07 Jan 2013 15:05:51 +0100, Detlev Offenbach wrote: > Hello, > > I am facing an issue with latest PyQt4 snapshot and Qt5. It seems that the > 'setSocketDescriptor()' method of 'QAbstractSocket' is not working > correctly, > if PyQt4 is compiled against Qt5. How to reproduce it? Just sta

Re: [PyQt] Issue of QWebPage.extension

2013-01-08 Thread Phil Thompson
On Mon, 7 Jan 2013 21:55:27 +0800, Flya Flyaa wrote: > I want to get page detailed error message this way: > http://stackoverflow.com/questions/7279046/how-to-get-detailed-error-message-when-qtwebkit-fails-to-load-a-page > > This need reimplement QWebPage.extension > http://www.riverbankcomputi

Re: [PyQt] PyQt5 roadmap-guesstimate?

2013-01-07 Thread Phil Thompson
On Mon, 7 Jan 2013 11:02:42 -0600, "Jonathan Harper" wrote: >> > Hi, >> > >> > reading the backlogs and all I was able to find related to support for >> > PyQt@Qt5 its great to see that PyQt4 does support Qt5 already. >> > Fantastic >> >> > work as usual Phil! >> > >> > My question is direct rela

Re: [PyQt] PyQt5 roadmap-guesstimate?

2013-01-07 Thread Phil Thompson
On Mon, 7 Jan 2013 22:07:26 +0800, zw g wrote: > Phil, thank you for the information. > > My question is: > Will PyQt4/PyQt5 eventually support Android and iOS? (After Qt5.x series > support Android & iOS.) PyQt5 will. PyQt4 will so long as the Android and iOS support is a simple port with no A

Re: [PyQt] PyQt5 roadmap-guesstimate?

2013-01-07 Thread Phil Thompson
On Mon, 07 Jan 2013 18:05:48 +0700, Sebastian Sauer wrote: > Hi, > > reading the backlogs and all I was able to find related to support for > PyQt@Qt5 its great to see that PyQt4 does support Qt5 already. Fantastic > work as usual Phil! > > My question is direct related to PyQt5, so not PyQt4.

Re: [PyQt] Issue compiling latest sip on Mac OS X for Python3.3

2013-01-02 Thread Phil Thompson
On Tue, 1 Jan 2013 16:35:51 +0100, Detlev Offenbach wrote: > Hello, > > I just tried to compile latest sip on Mac OS X for Python 3.3 for a > virtual environment created with pyvenv (which is part of Python since > 3.3). However, that failed with the error > > Error: SIP requires Python to be b

Re: [PyQt] sip syntax error when building pyqt

2013-01-02 Thread Phil Thompson
On Wed, 02 Jan 2013 18:46:53 +1100, Andrew Spiers wrote: > Hi, > I'm trying to build pyqt in a virtual environment. Sip is in the same > environment. The qt4 libraries (qt-4 on fedora) are installed on my system. > > Here is the error: > sip: > /home/aspiers/src/retext/PyQt-x11-gpl-4.9.6/sip/Qt

Re: [PyQt] Another issue with latest PyQt4 snapshot and Qt5

2012-12-30 Thread Phil Thompson
On Fri, 21 Dec 2012 12:09:03 +0100, Detlev Offenbach wrote: > Hello, > > here is the next issue I faced. Having resolved the before reported issue > temporarily I tried to compile. However, the linking stage failed. Here is > the > output. > > g++ -c -m64 -pipe -fPIC -O2 -Wall -W -D_REENTRANT

Re: [PyQt] How to uninstall?

2012-12-28 Thread Phil Thompson
On Thu, 27 Dec 2012 22:21:16 -0500, Alan Corey wrote: > I'm a newbie, but I don't find this anywhere. > > I want to uninstall PyQt-x11-gpl-4.9.6 because I've discovered there's > a slightly older version in the ports collection of my operating > system (OpenBSD). I've learned the hard way that i

Re: [PyQt] PyQt4 and Qt5

2012-12-21 Thread Phil Thompson
On Fri, 21 Dec 2012 11:04:33 +0100, Detlev Offenbach wrote: > Hello Phil, > > will you eventually provide Windows installers including Qt5 as well? Yes, but probably only for Python 2.7 and 3.3. > If > you > will, will it be possible to install them in parallel, i.e. have PyQt4 > with > Qt4 a

[PyQt] Support for Qt v5.0.0

2012-12-20 Thread Phil Thompson
For those interested the current PyQt4 and SIP snapshots fully support the final release of Qt v5.0.0. Bug reports welcome. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] How to call DBus method with UInt32 arg?

2012-12-12 Thread Phil Thompson
On Thu, 13 Dec 2012 06:47:50 +, Phil Thompson wrote: > On Mon, 10 Dec 2012 13:41:36 -0500, Evade Flow > wrote: >> Hi, all. Does anyone have experience trying to pass UInt32 arguments to >> a DBus service using PyQt4.QtDBus? The program appended below generates >

Re: [PyQt] How to call DBus method with UInt32 arg?

2012-12-12 Thread Phil Thompson
On Mon, 10 Dec 2012 13:41:36 -0500, Evade Flow wrote: > Hi, all. Does anyone have experience trying to pass UInt32 arguments to > a DBus service using PyQt4.QtDBus? The program appended below generates > the following error: > > % python build_connection.py 0 0 0 1234 > Call failed: No such meth

Re: [PyQt] Wrap with SIP in-out string parameters in class method

2012-12-11 Thread Phil Thompson
On Tue, 11 Dec 2012 12:56:51 +0200, Alexander Bruy wrote: > Hi all, > > I'm new to SIP and have some troubles with wrapping class in SIP. > I need to declare some parameters as in and out. > > Here is class header > > class AuthData > { > public: > virtual ~AuthData(); > bool get( QSt

[PyQt] ANN: PyQt v4.9.6 and SIP v4.14.2 Released

2012-12-09 Thread Phil Thompson
PyQt v4.9.6 and SIP v4.14.2 have been released. These are minor functional releases including support for Qt v4.8.4 and Qt v5.0-rc1. Details can be found at... http://www.riverbankcomputing.com/news/pyqt-496 http://www.riverbankcomputing.com/news/sip-4142 Phil ___

Re: [PyQt] dense about qvariant and dict

2012-12-08 Thread Phil Thompson
On Fri, 7 Dec 2012 16:06:28 -0800, David Cortesi wrote: > OK, I implement QListView.itemData() returning a python dict, > which then arrives at QListView.setItemData() as a QVariant > of length 1. The problem is, how to cast that qv back to a dict? > I have read > > http://www.riverbankcomputing.

Re: [PyQt] Pogles, Nice!

2012-11-30 Thread Phil Thompson
On Fri, 30 Nov 2012 14:11:38 -0500, Jeremy Moles wrote: > Hello everyone, particularly Phil! > > I had begun work on a C/Python extension for EGL/GLES2 written in mostly > pure C. It was coming along nicely, I had support for many features, and > then I stumbled upon pogles. It does everything

Re: [PyQt] Usage of QImageWriter.supportsOption()

2012-11-29 Thread Phil Thompson
On Thu, 29 Nov 2012 11:41:52 +0100, Vincent Vande Vyvre wrote: > I'm trying to see what option is supported by QImageWriter(). > > A test code: > - > # -*- coding: utf-8 -*- > > from PyQt4.QtGui i

Re: [PyQt] SIP: Wrapping a fixed size array

2012-11-27 Thread Phil Thompson
On Mon, 26 Nov 2012 15:33:44 -0700, Steve Freitas wrote: > Hi all, > > I saw this message on the subject earlier: > > http://osdir.com/ml/python-pyqt-pykde/2011-03/msg00121.html > > Is this still a TODO item, or is there an official way to do this now? Still TODO. Phil ___

Re: [PyQt] Bogus setMargin generated by pyuic4

2012-11-22 Thread Phil Thompson
On Tue, 20 Nov 2012 17:56:29 +0100, Saúl Ibarra Corretgé wrote: > Hi all, > > I ran into a problem in which pyuic4 will generate a bogus setMargin > call and Google is not helping much, I hope someone can shed some light. > > Here is the test ui file: > > https://gist.github.com/4119155#file_t

Re: [PyQt] QAxBase.dynamicCall overloaded with list as arguments

2012-11-20 Thread Phil Thompson
On Thu, 15 Nov 2012 21:36:46 +0100, Knacktus wrote: > Hello everyone, > > calling QAxBase.dynamicCall like this works: > > my_comp.dynamicCall("MyMethod(const QString&, int, bool)", "test", 2, > False) > > however, using the overloaded call > (http://qt-project.org/doc/qt-4.8/qaxbase.html#dyna

Re: [PyQt] Problem with threaded ftp: Cannot queue arguments of type 'QUrlInfo'

2012-11-20 Thread Phil Thompson
On Fri, 16 Nov 2012 14:40:10 -0800, Brian Knudson wrote: > Certainly, I'm doing something wrong, but I must be missing it. > > I've made a little demo script that downloads a file from ftp & updates a > progress bar while doing so. The downloading & updating the progress bar > works fine, howeve

Re: [PyQt] Strange utf-8 conversions in PyQt3

2012-11-20 Thread Phil Thompson
On Wed, 14 Nov 2012 00:39:52 +0100, Hans-Peter Jansen wrote: > Dear Phil, > > since one of the more recent versions of SIP (4.14 or 4.14.1), MySQL > database > table data shows strange characters with PyQt3. The tables hold utf-8 > data, > and all other database tools handle the utf-8 data as e

[PyQt] Support for Qt v5.0-beta2

2012-11-20 Thread Phil Thompson
The current PyQt and SIP snapshots implement support for Qt v5.0-beta2. As before this is (for the moment) limited to the QtCore, QtGui, QtNetwork, QtHelp, QtSvg, QtSql, QtWebKit, QtXml, QtXmlPatterns and uic modules. Phil ___ PyQt mailing listPyQt@r

Re: [PyQt] SIP and QString

2012-11-19 Thread Phil Thompson
On Sun, 18 Nov 2012 16:36:14 +0100, Luca Beltrame wrote: > Hello, > > while testing PyKDE4's modules with Python3, I noticed that the i18n() > calls, > which accept const char*, are not properly handled in Python 3 (both with > API > version 1 and 2): > > In [2]: from PyKDE4.kdecore import i18

Re: [PyQt] QMap, QHash?

2012-11-17 Thread Phil Thompson
On Fri, 16 Nov 2012 15:18:29 -0800, David Cortesi wrote: > On Fri, Nov 16, 2012 at 2:20 PM, Phil Thompson > wrote: >> On Fri, 16 Nov 2012 10:34:12 -0800, David Cortesi >> wrote: >>> Working on implementing a List model using QAbstractListModel and >>> would l

Re: [PyQt] QMap, QHash?

2012-11-16 Thread Phil Thompson
On Fri, 16 Nov 2012 10:34:12 -0800, David Cortesi wrote: > Working on implementing a List model using QAbstractListModel and > would like to implement (set)itemData which returns a QMap. > > QMap seems to be Qt's version of a dict, a list of key:value pairs. > (QHash is apparently similar.) The p

Re: [PyQt] Segfault with QRawFont

2012-11-11 Thread Phil Thompson
On Sun, 28 Oct 2012 23:12:35 +0530, Kovid Goyal wrote: > Blanket not calling dtors would be problematic, there's no way to be > sure what side effects that would have. One solution would be to > specialize the dealloc function for QRawFont objects to check if the > application is exiting and abort

Re: [PyQt] How to use QDeclarativeExtensionPlugin ?

2012-11-11 Thread Phil Thompson
On Sun, 4 Nov 2012 17:52:47 +0530, abhilash pp wrote: > Hi, > Could you please show me how to write code in Python using > 'QDeclarativeExtensionPlugin' to get 'qmlRegisterType' functionality to > register a custom Qwidget ? > Regards, > afilash It's not possible to support qmlRegisterType() with

Re: [PyQt] Not getting it re sip.voidptr

2012-11-11 Thread Phil Thompson
On Sun, 04 Nov 2012 18:53:18 +, Phil Thompson wrote: > On Sun, 4 Nov 2012 09:34:32 -0800, David Cortesi > wrote: >>>> When I try assignment, >>>> vptr[1] = 0x00 >>>> I get the message, >>>> TypeError: 'int' does not ha

Re: [PyQt] Py27-PyQt 4.9.4 and .5 builds fail on OS X 10.5.8 with "‘QGlyphRun’ was not declared in this scope"

2012-11-11 Thread Phil Thompson
On Sun, 11 Nov 2012 01:29:53 -0500, Galen Tackett wrote: > PyQt 4.6.0 or better is a prerequisite for the Eric IDE, which I want > to install on my PowerMac G5 running OS X 10.5.8 with Xcode 3.1.4 I. > > I have encountered a compiler error trying to built PyQt 4.9.5 for > Python 2.7. > > Rec

Re: [PyQt] QImage.constBits, constScanLine?

2012-11-10 Thread Phil Thompson
On Mon, 5 Nov 2012 15:44:13 -0800, David Cortesi wrote: > In the Digia docs (http://doc.qt.digia.com/qt/qimage.html) QImage is > said to have both a .bits() method and a .constBits() one, the latter > differing in that it does not perform a "deep" copy of the image data. > This might be useful if

Re: [PyQt] Build fail pyqt 4.9.5 or snapshot with qtwebkit 2.3

2012-11-06 Thread Phil Thompson
On Mon, 5 Nov 2012 16:40:59 -0500, Anke Boersma wrote: > Error messages: > http://paste.chakra-project.org/3165/ > Qt 4.8.3, KDE 4.9.3 > No issues building pyqt on qtwebkit 2.2, so wondering if there is any > workaround to make pyqt build on 2.3 version, since adding spell check to > qt browsers

Re: [PyQt] Not getting it re sip.voidptr

2012-11-04 Thread Phil Thompson
On Sun, 4 Nov 2012 09:34:32 -0800, David Cortesi wrote: >>> When I try assignment, >>> vptr[1] = 0x00 >>> I get the message, >>> TypeError: 'int' does not have the buffer interface > >> I can't reproduce this - can you send a short, complete test that >> demonstrates the problem. > > Her

Re: [PyQt] Not getting it re sip.voidptr

2012-11-04 Thread Phil Thompson
On Sat, 3 Nov 2012 12:15:21 -0700, David Cortesi wrote: > Following up on a stackoverflow answer re manipulating > a QImage, I access the contents of an image by: > > vptr = myQi.bytes() > vptr.setsize(myQi.byteCount()) > > Per the Riverbank docs, > >> A sip.voidptr may also be given a

Re: [PyQt] Custom widget SIP bindings: style not applied

2012-11-01 Thread Phil Thompson
On Mon, 29 Oct 2012 16:21:14 +0200, Alexander Bruy wrote: > Hi all, > > I subclassed QLineEdit and created custom lineedit widget with builtin > button to clear it. This code in C++ and it works as expected (see attached > images cpp_widget_empty.png and cpp_widget_with_text.png). Then I > tried

Re: [PyQt] Exception while running metaSIP

2012-11-01 Thread Phil Thompson
On Tue, 30 Oct 2012 14:50:14 +0100, Luca Beltrame wrote: > Hello, > > I'm trying to run MetaSIP, but I keep on hitting this exception: > > $ msip > Traceback (most recent call last): > File "/usr/bin/msip", line 228, in > rc = launchGUI(prjname, guiargs) > File "/usr/bin/msip", line 145

Re: [PyQt] Dip package and PyQt version

2012-11-01 Thread Phil Thompson
On Tue, 30 Oct 2012 16:04:01 +, Rute Mendes wrote: > Hi, > > I tried to install "dip" package, unfortunatelly I verifyed that it > only works with PyQt 4.7.x at least. > Is it not possible for it to work with earlier versions? > > Thank you, > Ruth > > I know the right way is to upgrade my

Re: [PyQt] dip development

2012-11-01 Thread Phil Thompson
On Mon, 29 Oct 2012 15:17:26 +0100, "o.fourn...@perigord.com" wrote: > Hello, > > dip development is stopped or just sleeping? > (I would like know if I can build an application with it ) Sleeping - PyQt development takes precedence. Recently this has been related to the release of Qt5-beta1. P

Re: [PyQt] How can i uninstall PyQt4?

2012-11-01 Thread Phil Thompson
On Thu, 1 Nov 2012 00:47:22 +0800, zw g wrote: > Dear list, > > I compile PyQt4 4.9.4 from source on Mac OS X. > How can i uninstall it? (I want to use Macports to install it in the > future.) > > I didn't find any `uninstall` description yet. > Any one please give your suggestion? Run "make -n

Re: [PyQt] Specifying Include Directories for PyQt Build

2012-10-28 Thread Phil Thompson
On Sun, 21 Oct 2012 00:57:27 -0400, Scott Kitterman wrote: > On Saturday, October 20, 2012 10:42:07 PM Scott Kitterman wrote: >> On Saturday, October 20, 2012 08:44:25 PM Scott Kitterman wrote: >> > Starting with python3.3, python will support multiarch [1] in Debian >> > and >> > Ubuntu. As part

Re: [PyQt] Segfault with QRawFont

2012-10-28 Thread Phil Thompson
On Sun, 28 Oct 2012 15:38:59 +0530, Kovid Goyal wrote: > The backtrace is below. Looks to me like the QRawFont object is being > released after Qt has already released the FreeType library, leading to > the segfault. The workaround is to ensure that all QRawFont objects are > deleted before Py_Fin

[PyQt] ANN: pogles v0.1 Released

2012-10-27 Thread Phil Thompson
pogles v0.1 has been released. This is a set of Python bindings for OpenGL ES v2.0 with specific support for the Raspberry Pi and X11. It can be downloaded from PyPI (http://pypi.python.org/pypi/pogles) SIP v4.14.1 is required. Phil ___ PyQt mailing li

[PyQt] ANN: SIP v4.14.1 Released

2012-10-27 Thread Phil Thompson
SIP v4.14.1 has been released. It is mainly a minor feature and bug fix release aimed at generating modules for C libraries. (PyQt users can ignore it.) Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/l

Re: [PyQt] A gobal variable problem in sip

2012-10-24 Thread Phil Thompson
On Wed, 24 Oct 2012 06:11:13 +0800, "D.Y Feng" wrote: > I meet a problem in my code: > > hello.h: > > #include >> >> class Hello : public QObject{ >> Q_OBJECT >> public: >> Hello(QObject *parent = 0); >> static int test(){ >> static int i=0; >> qDebug()<> retu

Re: [PyQt] need help with new signals

2012-10-24 Thread Phil Thompson
On Tue, 23 Oct 2012 22:30:12 +0100, Matthew Ngaha wrote: > im trying to figure out how i can change the old signal syntax to new. the > program im reading through creates a widget that inherits from QSpinBox. > > zerospinbox = ZeroSpinBox() > > It then emits its custom signal, then that signal i

Re: [PyQt] QGraphicsView view jumping bug

2012-10-23 Thread Phil Thompson
On Tue, 23 Oct 2012 20:20:30 +0100, Zsolt Ero wrote: > I'm having a weird problem: my whole QGraphicsView goes crazy if I > uncomment the following lines in a class (of QtGui.QGraphicsItem): > > if len( self.points ) == 1: > rect = QtCore.QRectF( self.points[0].x()-self.radius, > self.points[0].

Re: [PyQt] problem running pyqt on xubuntu

2012-10-21 Thread Phil Thompson
On Sun, 21 Oct 2012 08:11:11 +0100, Mark Summerfield wrote: > Hi Baz, > > On Sun, 21 Oct 2012 00:44:58 +0100 > Baz Walter wrote: >> On 20/10/12 08:11, Mark Summerfield wrote: >> > Hi, >> > >> > I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an >> > Xubuntu machine which has Qt

Re: [PyQt] Platforms directive or tags, or both?

2012-10-19 Thread Phil Thompson
On Thu, 18 Oct 2012 23:16:37 +0200, Jens Thoms Toerring wrote: > Hi Larry, > > On Thu, Oct 18, 2012 at 02:45:30PM -0600, Larry Shaffer wrote: >> Interesting approach. Thank you for sharing. Since the QGIS project >> has a minimum requirement of Python 2.3 (2.5+ recommended), I think >> maybe the

Re: [PyQt] Platforms directive or tags, or both?

2012-10-19 Thread Phil Thompson
On Thu, 18 Oct 2012 15:09:48 -0600, Larry Shaffer wrote: > On Thu, Oct 18, 2012 at 2:57 PM, Phil Thompson > wrote: >> On Thu, 18 Oct 2012 11:58:59 -0600, Larry Shaffer >> >> wrote: > -8<-- >>>>> Also, I would either like to kno

Re: [PyQt] Platforms directive or tags, or both?

2012-10-18 Thread Phil Thompson
On Thu, 18 Oct 2012 11:58:59 -0600, Larry Shaffer wrote: > Hi Phil, > > Thanks for the reply. > > On Thu, Oct 18, 2012 at 10:03 AM, Phil Thompson > wrote: >> On Thu, 18 Oct 2012 09:42:30 -0600, Larry Shaffer >> >> wrote: >>> Hi, >>> >

Re: [PyQt] Platforms directive or tags, or both?

2012-10-18 Thread Phil Thompson
On Thu, 18 Oct 2012 09:42:30 -0600, Larry Shaffer wrote: > Hi, > > I'm working on a fix for Mac (for QGIS project) where size_t needs a > different typedef in a sip file than other platforms. > > See: http://hub.qgis.org/issues/6505 > > The build system is CMake that passes -t WS_MACX from the

Re: [PyQt] support for Android

2012-10-15 Thread Phil Thompson
On Mon, 15 Oct 2012 16:38:48 +0200, Stef Mientki wrote: > hello > > Is there any progress in the support for Android ? > > PyQt seems to be the only environment that supports full WebKit. > > I just got my hands on a galaxy Note 10.1, > and I have a very simple (at least I think) need: > "write

Re: [PyQt] QComboBox.findItem and tuples

2012-10-11 Thread Phil Thompson
On Thu, 11 Oct 2012 22:21:09 +0200, Vicent Mas wrote: > Hi, > > as shows the following code, QComboBox.findItem works fine with lists > but no with tuples. > > if __name__ == "__main__": > import sip > sip.setapi('QVariant', 2) > from PyQt4 import QtGui > a = QtGui.QApplication([

Re: [PyQt] ANN: MetaSIP v1.0 Released

2012-10-06 Thread Phil Thompson
On Sat, 6 Oct 2012 11:00:48 -0700 (PDT), Shaheed Haque wrote: > I'm trying to use MetaSIP to generate bindings for Okteta, and by fiddling > about a bit , I got to the point where it seems to be parsing things OK. As > the next step seemed to involve laying with the parsed entries, I > temporarily

Re: [PyQt] QScriptEngineAgent segmentation fault

2012-10-03 Thread Phil Thompson
On Wed, 3 Oct 2012 17:57:39 +0100, Robert Kent wrote: > HI All, > > I'm trying to implement a QtScript debugger but am unable to install a > QScriptEngineAgent on a QScriptEngine. A much simplified example of what > I'm doing is shown below: > > from PyQt4.QtCore import * > from PyQt4.QtGui impo

Re: [PyQt] latest pykde4 (4.9.2) build fails against new sip-4.14/PyQt-4.9.5

2012-10-03 Thread Phil Thompson
On Wed, 03 Oct 2012 14:55 +0200, Luca Beltrame wrote: > In data mercoledì 3 ottobre 2012 08:51:48, Scott Kitterman ha scritto: > >> It would make it possible to run PyKDE4 4.10 on both Debian Wheezy and >> Ubuntu Quantal (12.10) without having to revert the changes for the newer > > I can try d

[PyQt] ANN: PyQt v4.9.5 Released

2012-09-30 Thread Phil Thompson
PyQt v4.9.5 has been released... - Binary installers for Python v3.3 are provided. - Added support for Qt v4.8.3. - Added support for Qt v5-beta1 (QtCore, QtGui, QtHelp, QtNetwork, QtSql, QtSvg, QtWebKit and QtXml only). - Implemented __str__ and __unicode__ for QChar. - Added the missing QPoint

[PyQt] ANN: SIP v4.14 Released

2012-09-30 Thread Phil Thompson
SIP v4.14 has been released... - The internal API version is increased to 9.0 requiring the regeneration of all modules. - Added the %InstanceCode directive. - Added the %VirtualErrorHandler directive. - Added the default_VirtualErrorHandler argument to the %Module directive. - Added the /Virtua

Re: [PyQt] QValidator.validate encore

2012-09-29 Thread Phil Thompson
On Sat, 29 Sep 2012 08:24:13 -0700, David Cortesi wrote: >> >> The API is different for different versions of the QString API. >> Phil >> > > Sorry, I'm using Python 2.7 and PyQt4 (4.8.3). > > Looking around the Riverbank docs starting at the top level I find this > link: > > > http://www.rive

Re: [PyQt] QValidator.validate encore

2012-09-29 Thread Phil Thompson
On Fri, 28 Sep 2012 16:27:52 -0700, David Cortesi wrote: > I have set up a QValidator whose validate method consists of: > > def validate(self, qs, pos) : > return (QValidator.Acceptable, qs, pos) > > and this still gets TypeError: invalid result type from > findRepValidator.validate

[PyQt] ANN: PyQtChart v1.1 Released

2012-09-28 Thread Phil Thompson
PyQtChart v1.1 has been released. These are the Python bindings for Digia's Qt Commercial Charts library (http://qt.digia.com/Product/Qt-Add-Ons/Charts/). This release adds support for v1.1 and includes additional examples demonstrating new features including donut charts and horizontal charts. P

Re: [PyQt] QThread terminate trouble when porting to Python 3

2012-09-24 Thread Phil Thompson
On Sat, 22 Sep 2012 22:25:24 +0430, Lee Harr wrote: > I created a simple test case to demonstrate the problem I am having. > > As it is, running in Python 3.2 with PyQt 4.9.1 on Ubuntu, the program > freezes when trying to terminate the QThread. > > With the sleep, or if running on Python 2.7 wi

Re: [PyQt] sip: add new annotation for specifying ownership of results of virtual methods

2012-09-24 Thread Phil Thompson
On Fri, 21 Sep 2012 21:17:31 +0200, mathias.b...@gmx.de wrote: > On 21.09.2012, 16:28:20 Phil Thompson wrote: >> On Mon, 3 Sep 2012 22:27:41 +0200, mathias.b...@gmx.de wrote: >>> Hi Phil, >>> >>> I've come across a case which I think deserves its ow

Re: [PyQt] pyqt4 mac source tarball missing?

2012-09-23 Thread Phil Thompson
On Sun, 23 Sep 2012 14:56:20 -0500, Jack Nagel wrote: > The mac tarball (PyQt-mac-gpl-4.9.4.tar.gz) appears to be missing from > > http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.9.4/ > > I assume this is just an oversight. Should be there now. Thanks, Phil

Re: [PyQt] sip: add new annotation for specifying ownership of results of virtual methods

2012-09-21 Thread Phil Thompson
On Mon, 3 Sep 2012 22:27:41 +0200, mathias.b...@gmx.de wrote: > Hi Phil, > > I've come across a case which I think deserves its own function annotation. > This is the proplem: > > I'm embedding Python code into a C++ app. There are two wrapped classes: > > class Netlister > { > virtual ~Ne

Re: [PyQt] QPoint not automatically cast to QPointF

2012-09-20 Thread Phil Thompson
On Thu, 20 Sep 2012 07:34:10 +0530, Shriramana Sharma wrote: > In my recent work with Beziers I ran across this. A QPoint is *not* > automatically converted into a QPointF in Python/PyQt while it *is* > converted in C++: > > The following C++ code compiles fine: > > # include > # include > int

Re: [PyQt] Weird behavior in fromMimeData method (pyScintilla)

2012-09-20 Thread Phil Thompson
On Thu, 20 Sep 2012 00:48:10 +0200, Salvatore Larosa wrote: > Hi, > > 2012/9/19 Phil Thompson > >> On Wed, 19 Sep 2012 14:54:57 +0200, Salvatore Larosa >> wrote: >> > Hi Phil, >> > >> > 2012/9/19 Phil Thompson >> > >> >&

Re: [PyQt] Weird behavior in fromMimeData method (pyScintilla)

2012-09-19 Thread Phil Thompson
On Wed, 19 Sep 2012 14:54:57 +0200, Salvatore Larosa wrote: > Hi Phil, > > 2012/9/19 Phil Thompson > >> On Wed, 19 Sep 2012 08:05:42 +0200, Salvatore Larosa >> wrote: >> > Hi, >> > >> > 2012/9/19 Phil Thompson >> > >> >&

Re: [PyQt] Weird behavior in fromMimeData method (pyScintilla)

2012-09-19 Thread Phil Thompson
On Wed, 19 Sep 2012 08:05:42 +0200, Salvatore Larosa wrote: > Hi, > > 2012/9/19 Phil Thompson > >> On Tue, 18 Sep 2012 23:16:00 +0200, Salvatore Larosa >> wrote: >> > Hi all, >> > I am not sure if this is the rigth place to ask! >> > >>

<    1   2   3   4   5   6   7   8   9   10   >