Re: [PyQt] Custom widgets in Qt5

2013-06-19 Thread Vincent Vande Vyvre

Le 18/06/2013 10:10, Phil Thompson a écrit :

On Tue, 18 Jun 2013 08:15:44 +0200, Vincent Vande Vyvre
vincent.vandevy...@swing.be wrote:

Same problem with the latest release, the Designer crash at launching
with any custom widget.

Vincent

Mine work fine for me, without (as far as I can remember) needing any
changes. Sounds like you might have a Qt build problem.

Phil

You're right, it seems (at least on Ubuntu) it's necessary to uninstal 
the old SIP before install the new.


Thanks.

Vincent

--
Vincent V.V.
Oqapy https://launchpad.net/oqapy . Qarte 
https://launchpad.net/qarte . PaQager https://launchpad.net/paqager

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Custom widgets in Qt5

2013-06-18 Thread Vincent Vande Vyvre

Le 06/06/2013 12:52, Vincent Vande Vyvre a écrit :

Le 05/06/2013 23:13, Phil Thompson a écrit :
In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in 
depends on how your Qt5 installation is configured. Phil 
I don't know why but the Makefile was not created in 
.../PyQt-gpl-5.0-snapshot-cdc78cf84e0d/designer/


So, I've re-run the configure.py and the make and make install only 
for the designer.


Now the lib libpyqt5.so is in 
/usr/lib/Qt5.0.2/5.0.2/gcc_64/plugins/designer/ but the Designer crash 
at launching with any of my custom widgets and also with the 
geolocationwidget example provided here:

http://doc.qt.digia.com/qq/qq26-pyqtdesigner.html

I've tried all my widgets separately, this is the feedback of the command

vincent@djoliba:~$ /usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/designer
QMetaType::registerType: Binary compatibility break -- Size mismatch 
for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 
16, now registering size 0.

Abandon (core dumped)

...




Same problem with the latest release, the Designer crash at launching 
with any custom widget.


Vincent

--
Vincent V.V.
Oqapy https://launchpad.net/oqapy . Qarte 
https://launchpad.net/qarte . PaQager https://launchpad.net/paqager

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Custom widgets in Qt5

2013-06-18 Thread Phil Thompson
On Tue, 18 Jun 2013 08:15:44 +0200, Vincent Vande Vyvre
vincent.vandevy...@swing.be wrote:
 Le 06/06/2013 12:52, Vincent Vande Vyvre a écrit :
 Le 05/06/2013 23:13, Phil Thompson a écrit :
 In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in 
 depends on how your Qt5 installation is configured. Phil 
 I don't know why but the Makefile was not created in 
 .../PyQt-gpl-5.0-snapshot-cdc78cf84e0d/designer/

 So, I've re-run the configure.py and the make and make install only 
 for the designer.

 Now the lib libpyqt5.so is in 
 /usr/lib/Qt5.0.2/5.0.2/gcc_64/plugins/designer/ but the Designer crash 
 at launching with any of my custom widgets and also with the 
 geolocationwidget example provided here:
 http://doc.qt.digia.com/qq/qq26-pyqtdesigner.html

 I've tried all my widgets separately, this is the feedback of the
command


 vincent@djoliba:~$ /usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/designer
 QMetaType::registerType: Binary compatibility break -- Size mismatch 
 for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 
 16, now registering size 0.
 Abandon (core dumped)


 ...


 
 Same problem with the latest release, the Designer crash at launching 
 with any custom widget.
 
 Vincent

Mine work fine for me, without (as far as I can remember) needing any
changes. Sounds like you might have a Qt build problem.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Custom widgets in Qt5

2013-06-06 Thread Vincent Vande Vyvre

Le 05/06/2013 23:13, Phil Thompson a écrit :
In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in 
depends on how your Qt5 installation is configured. Phil 
I don't know why but the Makefile was not created in 
.../PyQt-gpl-5.0-snapshot-cdc78cf84e0d/designer/


So, I've re-run the configure.py and the make and make install only for 
the designer.


Now the lib libpyqt5.so is in 
/usr/lib/Qt5.0.2/5.0.2/gcc_64/plugins/designer/ but the Designer crash 
at launching with any of my custom widgets and also with the 
geolocationwidget example provided here:

http://doc.qt.digia.com/qq/qq26-pyqtdesigner.html

I've tried all my widgets separately, this is the feedback of the command

vincent@djoliba:~$ /usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/designer
QMetaType::registerType: Binary compatibility break -- Size mismatch for 
type 'QPaintBufferCacheEntry' [1024]. Previously registered size 16, now 
registering size 0.

Abandon (core dumped)


Except for one widget wich I've had this backtrace:

vincent@djoliba:~$ /usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/designer
*** glibc detected *** /usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/designer: 
realloc(): invalid pointer: 0x7ff7989ef340 ***

=== Backtrace: =
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7ff797d8db96]
/lib/x86_64-linux-gnu/libc.so.6(realloc+0x2de)[0x7ff797d9293e]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_ZN9QListData7reallocEi+0x26)[0x7ff798482e46]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_ZN9QListData6appendEi+0x65)[0x7ff798482f05]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x80d76)[0x7ff79844ed76]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x7f4a7)[0x7ff79844d4a7]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x7fd25)[0x7ff79844dd25]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x7feae)[0x7ff79844deae]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_Z20qMessageFormatString9QtMsgTypeRK18QMessageLogContextRK7QString+0x4e)[0x7ff79844dfae]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x806f5)[0x7ff79844e6f5]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x7e07c)[0x7ff79844c07c]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(+0x7e19a)[0x7ff79844c19a]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_ZNK14QMessageLogger5fatalEPKcz+0xa9)[0x7ff79844c8c9]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_ZN9QMetaType22registerNormalizedTypeERK10QByteArrayPFvPvEPFS3_PKvES5_PFS3_S3_S7_Ei6QFlagsINS_8TypeFlagEEPK11QMetaObject+0x48a)[0x7ff798600bba]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_ZN9QMetaType12registerTypeEPKcPFvPvEPFS2_PKvES4_PFS2_S2_S6_Ei6QFlagsINS_8TypeFlagEEPK11QMetaObject+0x61)[0x7ff798600c51]
/usr/lib/Qt5.0.2/5.0.2/gcc_64/bin/../lib/libQt5Core.so.5(_ZN9QMetaType12registerTypeEPKcPFvPvEPFS2_PKvE+0x2a)[0x7ff798600cea]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x1b8efe)[0x7ff775014efe]
/lib64/ld-linux-x86-64.so.2(+0xf306)[0x7ff79aba4306]
/lib64/ld-linux-x86-64.so.2(+0xf3df)[0x7ff79aba43df]
/lib64/ld-linux-x86-64.so.2(+0x13ada)[0x7ff79aba8ada]
/lib64/ld-linux-x86-64.so.2(+0xf176)[0x7ff79aba4176]
/lib64/ld-linux-x86-64.so.2(+0x1331a)[0x7ff79aba831a]
/lib/x86_64-linux-gnu/libdl.so.2(+0xf26)[0x7ff796583f26]
/lib64/ld-linux-x86-64.so.2(+0xf176)[0x7ff79aba4176]
/lib/x86_64-linux-gnu/libdl.so.2(+0x152f)[0x7ff79658452f]
/lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31)[0x7ff796583fc1]
/usr/lib/libpython3.2mu.so.1.0(_PyImport_GetDynLoadFunc+0x121)[0x7ff7850facf1]
/usr/lib/libpython3.2mu.so.1.0(_PyImport_LoadDynamicModule+0xd5)[0x7ff785061725]
/usr/lib/libpython3.2mu.so.1.0(+0x1b43a2)[0x7ff7851a83a2]
/usr/lib/libpython3.2mu.so.1.0(+0x10714f)[0x7ff7850fb14f]
/usr/lib/libpython3.2mu.so.1.0(+0x1b4a84)[0x7ff7851a8a84]
/usr/lib/libpython3.2mu.so.1.0(PyImport_ImportModuleLevel+0x3a)[0x7ff7851a8fba]
/usr/lib/libpython3.2mu.so.1.0(+0x6804f)[0x7ff78505c04f]
/usr/lib/libpython3.2mu.so.1.0(PyObject_Call+0x7e)[0x7ff78511e0be]
/usr/lib/libpython3.2mu.so.1.0(PyEval_CallObjectWithKeywords+0x47)[0x7ff785186b57]
/usr/lib/libpython3.2mu.so.1.0(PyEval_EvalFrameEx+0x21d9)[0x7ff78506ded9]
/usr/lib/libpython3.2mu.so.1.0(PyEval_EvalCodeEx+0x6a6)[0x7ff7851a5a66]
/usr/lib/libpython3.2mu.so.1.0(PyEval_EvalCode+0x3b)[0x7ff7851a5f0b]
/usr/lib/libpython3.2mu.so.1.0(PyImport_ExecCodeModuleWithPathnames+0x115)[0x7ff7851a6025]
/usr/lib/libpython3.2mu.so.1.0(+0x1b3d71)[0x7ff7851a7d71]
/usr/lib/libpython3.2mu.so.1.0(+0x1b43a2)[0x7ff7851a83a2]
/usr/lib/libpython3.2mu.so.1.0(+0x10714f)[0x7ff7850fb14f]
/usr/lib/libpython3.2mu.so.1.0(+0x1b4a3f)[0x7ff7851a8a3f]
/usr/lib/libpython3.2mu.so.1.0(PyImport_ImportModuleLevel+0x3a)[0x7ff7851a8fba]
/usr/lib/libpython3.2mu.so.1.0(+0x6804f)[0x7ff78505c04f]

Re: [PyQt] Custom widgets in Qt5

2013-06-05 Thread Phil Thompson
On Tue, 04 Jun 2013 12:24:26 +0200, Vincent Vande Vyvre
vincent.vandevy...@swing.be wrote:
 Hi,
 
 With PyQt4 I have this folder:
 /usr/lib/x86_64-linux-gnu/qt4/plugins/designer/
 wich content the lib libpythonplugin.so and a subfolder python for my 
 custom widgets.
 
 Now, I've just installed Qt5 and the latest snapshots of SIP and PyQt5 
 and I'm looking whee can I copy my own widgets.
 I've found a folder:
 /usr/lib/Qt5.0.2/5.0.2/gcc_64/plugins/designer
 but without the lib libpythonplugin.so, I presume this lib is needed for

 the widgets written in Python.
 
 So, it's an other place for theses plugins or it's not already supported

 in PyQt5 ?

In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in
depends on how your Qt5 installation is configured.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt