Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Jens Persson
This example runs without errors for me on Python2 in Linux. Greets Jens On Mon, Oct 7, 2013 at 2:27 AM, Stephen Gava elgua...@gmail.com wrote: Phil, i've attached a simple test case that illustrates this problem, here it is inline: import sys from PyQt5.QtWidgets import

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Stephen Gava
On 07/10/13 19:07, Jens Persson wrote: This example runs without errors for me on Python2 in Linux. ok, i should say these errors are occurring with pyqt5,1, qt5.1 python 3.3 on 64bit linux. Greets Jens On Mon, Oct 7, 2013 at 2:27 AM, Stephen Gava elgua...@gmail.com

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Vincent Vande Vyvre
Le 07/10/2013 11:02, Jens Persson a écrit : For me, python-2.7.3, qt-5.1.1, pyqt-5.1 and 32-bit Linux. On Mon, Oct 7, 2013 at 10:13 AM, Stephen Gava elgua...@gmail.com mailto:elgua...@gmail.com wrote: On 07/10/13 19:07, Jens Persson wrote: This example runs without errors for

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Phil Thompson
On Mon, 07 Oct 2013 13:41:04 +0200, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Le 07/10/2013 11:02, Jens Persson a écrit : For me, python-2.7.3, qt-5.1.1, pyqt-5.1 and 32-bit Linux. On Mon, Oct 7, 2013 at 10:13 AM, Stephen Gava elgua...@gmail.com mailto:elgua...@gmail.com wrote:

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Phil Thompson
On Mon, 07 Oct 2013 11:27:56 +1100, Stephen Gava elgua...@gmail.com wrote: Phil, i've attached a simple test case that illustrates this problem, here it is inline: import sys from PyQt5.QtWidgets import (QApplication,QMainWindow) class MainWindow(QMainWindow): def __init__(self):

Re: [PyQt] PyQt5 and QQuickImageProvider

2013-10-07 Thread Phil Thompson
On Mon, 7 Oct 2013 00:09:51 +0200, Jens Persson xerx...@gmail.com wrote: Hi, I'm trying to port an app to PyQt5 and everything has been working smoothly so far ... except one thing. I can't get my QQuickImageProvider to work properly: --- from PyQt5 import QtCore from PyQt5 import QtGui

Re: [PyQt] PyQt5 and QQuickImageProvider

2013-10-07 Thread Jens Persson
The bug is in PyQt4. The size should be returned and not passed in as an argument. In your PyQt5 code change the return statement to something like... return pixmap, QtCore.QSize(100, 100) I probably won't fix the bug at this stage as it would break existing code. Phil Hey thanks

[PyQt] QT save state example

2013-10-07 Thread Dariusz
Hey there I'm trying to understand how does save state works using QT but so far I was very unlucky with getting examples or setting it up in qtdesigner and then using pyuic4 to get python code. Can some1 have a look at this example code I made and let me know where do I plug those save state

[PyQt] module QtSvg doesn't build in PyQt-gpl-5.1.1-snapshot-fc7b8711dba0

2013-10-07 Thread lloyd konneker
I haven't done much exploration as to why. Ubuntu 13.04 Qt 5.0.2 (with Ubuntu) package QtCreator from Ubuntu Python 3.3 sip 4.15.2 PyQt-gpl-5.1.1-snapshot-fc7b8711dba0 ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Stephen Gava
On 07/10/13 22:58, Phil Thompson wrote: It's Ok I can reproduce the problem. ah great, even though there was another report of this, and i could reproduce it both with hand-built libraries and distribution packages, i was starting to fear it might one of those nutty 'specific to my

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Stephen Gava
On 07/10/13 23:36, Phil Thompson wrote: Hopefully fixed in tonight's PyQt5 snapshot, or try the attached patch. great thanls Phil, i'll try building the snapshot when it's available and test that. any wild idea how far away a point release is so i can request an updated distro package?

Re: [PyQt] module QtSvg doesn't build in, PyQt-gpl-5.1.1-snapshot-fc7b8711dba0 (lloyd konneker)

2013-10-07 Thread lloyd konneker
More information: Apparently no errors during build but the .so is missing after install. In the build directory, after a build: Exists: cfgtest_QtSvg.pro and .cpp Not exists: cfgtest_QtSvg.o and .exe and no QtSvg directory I am not very familiar with sip and the PyQt and Qt build processes.

Re: [PyQt] module QtSvg doesn't build in, PyQt-gpl-5.1.1-snapshot-fc7b8711dba0 (lloyd konneker)

2013-10-07 Thread lloyd konneker
I determined that QtSvg is not a subtarget in the Makefile. I will assume that is intended and that I shouldn't be using a snapshot. I will regress to the released PyQt5.1. ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] QT save state example

2013-10-07 Thread David Cortesi
I'm trying to understand how does save state works using QT... ... I only found C++ examples which I cant read, Being able to mentally translate the C++ code in the Qt doc into Python is a very useful skill! It really isn't too hard. Turn :: into dot and add self. everywhere. The first thing