Re: [PyQt] Understanding PyQt Documentation

2013-09-20 Thread Erik Janssens
this might help, I wrote it some time ago as a reminder to myself :) http://python- camelot.s3.amazonaws.com/gpl/release/pyqt/doc/advanced/development.html On Friday, September 20, 2013 09:50:25 PM Chris O'Halloran wrote: Hello all, This question will hopefully be trivial but I seem to have a

Re: [PyQt] ANN: PyQt5 Snapshots Available

2013-05-06 Thread Erik Janssens
Hello Phil, could you possibly give some explanations for The GIL is only released when it is known to be needed. PyQt4 always released the GIL when calling Qt. Thanks, Erik On Mon, May 6, 2013 at 4:49 PM, Phil Thompson p...@riverbankcomputing.comwrote: The first PyQt5 snapshots are now

Re: [PyQt] Camelot 13.04.13 released

2013-04-16 Thread Erik Janssens
overnight, but will take a couple of months. Regards, Erik On Tue, Apr 16, 2013 at 5:36 PM, Sibylle Koczian nulla.epist...@web.dewrote: Am 12.04.2013 12:03, schrieb Erik Janssens: Hello, Camelot 13.04.13 has been released. Camelot provides components to build business applications on top

[PyQt] Camelot 13.04.13 released

2013-04-12 Thread Erik Janssens
Hello, Camelot 13.04.13 has been released. Camelot provides components to build business applications on top SQLAlchemy and PyQt. For screenshots, see : http://www.python-camelot.com/ An overview of the changes can be found here :

[PyQt] intersphinx references for PyQt

2013-03-30 Thread Erik Janssens
Hello, would it be possible to include in the PyQt documentation's objects.inv file references to all Qt classes wrapped by PyQt. at the moment, it contains only a selection of wrapped classes, and the PyQt specific classes. there's only a few lines in the objects.inv file, such as :

Re: [PyQt] Next Releases

2013-02-26 Thread Erik Janssens
what kind of changes to the thread support ?? do you have links to changesets ? Thx, Erik On Tuesday, February 26, 2013 08:59:12 AM Phil Thompson wrote: 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

Re: [PyQt] Help tracking down intermittent segfault using QGraphicsItem

2013-01-05 Thread Erik Janssens
Here are some things regarding detecting and preventing segfaults I've once written down for my own reference : http://python-camelot.s3.amazonaws.com/gpl/release/pyqt/doc/advanced/debug.html http://python-camelot.s3.amazonaws.com/gpl/release/pyqt/doc/advanced/development.html I have not seen an

Re: [PyQt] button delegate in a tableview

2012-11-08 Thread Erik Janssens
Hi Chris, I'm not sure if this can be fixed, maybe you can ask this on the Qt info mailing list. If it can be fixed, I'm interested in the solution ;) What happens is, when the TableWidget receives a click, it creates an editor, but the editor has not yet received the click. That is perfect

Re: [PyQt] (no subject)

2012-05-28 Thread Erik Janssens
to Python 3. Cheers, Erik On Sat, 2012-05-26 at 15:49 +0200, Sibylle Koczian wrote: Am 22.05.2012 00:15, schrieb Erik Janssens: you could give Camelot a try ... http://www.python-camelot.com/ Is Camelot usable with Python 3? I can't find out for sure from the website, but I suspect it's

Re: [PyQt] (no subject)

2012-05-21 Thread Erik Janssens
you could give Camelot a try ... http://www.python-camelot.com/ On Sat, May 19, 2012 at 4:16 AM, Wes Goodenough mob...@wrgoodenough.com wrote: Hello. I'm learning PyQt for use with Designer for database applications. I've been reading all the resources and tutorials, and I have a good amount

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-28 Thread Erik Janssens
which version of PyQt are you using ? When in older versions (I think something like 2 releases ago), the garbage collection kicks in in a thread and it deletes a QObject from another thread, this object was deleted immediately, while in recent versions those are deleted later on in the event

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-28 Thread Erik Janssens
wrote: On Sat, Apr 28, 2012 at 01:05:37PM +0200, Erik Janssens wrote: which version of PyQt are you using ? When in older versions (I think something like 2 releases ago), the garbage collection kicks in in a thread and it deletes a QObject from another thread, this object was deleted

[PyQt] debug builds under windows

2012-04-14 Thread Erik Janssens
Hi, How are debug builds supposed to work under windows ? I'm observing a segfault that I can only reproduce on windows, and would like to create a stackstrace. I've build Qt in debug mode. But when building sip with --debug, it appears that the dll is named sip_d instead of sip, making the

Re: [PyQt] debug builds under windows

2012-04-14 Thread Erik Janssens
use in debug :( Erik On Sat, 2012-04-14 at 08:52 -0400, Nathan Weston wrote: On 04/14/2012 05:16 AM, Erik Janssens wrote: Hi, How are debug builds supposed to work under windows ? I'm observing a segfault that I can only reproduce on windows, and would like to create a stackstrace

Re: [PyQt] How SIP detects that a QObject need to destruct.

2012-03-29 Thread Erik Janssens
creating/deleting children does not change the refcount of a QObject, since this is done purely in C++ On Thu, 2012-03-29 at 19:22 +0800, Goldfish Huang wrote: Hi, all. I am doubted how SIP deal with QObject's cycle reference, when I try to fix some unknown memory leaks. It seems that SIP

Re: [PyQt] QWidget 'destroyed' signal: possible regression?

2012-03-13 Thread Erik Janssens
Hello Pierre, Phil, I'm not so sure the current behavior is inconsistent. One of the reasons of using signal/slot over normal callbacks is that they are disconnected when one of the objects gets deleted. So if you connect the destroyed signal to a non-QObject-method, the slot is called. If you

Re: [PyQt] need to install multiple versions of PyQt on each laptop at work

2012-01-27 Thread Erik Janssens
We made a custom python distribution to be able to use multiple qt/pyqt versions on the same machine without those issues. It's python 2.7 though : http://www.conceptive.be/python-sdk.html On Thu, 2012-01-26 at 21:58 -0800, Suzanne Berger wrote: I experimented with various releases of pyqt in

[PyQt] PyQt bug with Qt 4.8.0?

2012-01-07 Thread Erik Janssens
I can confirm this fix works for Qt 4.8.0 with python 2.7.2 Does this fix have side effects ? On Wed, 28 Dec 2011 18:16:13 +0100, Linos info at linos.es wrote: Hi, after Qt upgrade to 4.8.0 in my machine i have been getting problems with the painting of vertical headers in

[PyQt] Camelot 11.11.16 released

2011-11-16 Thread Erik Janssens
Hello, Camelot 11.11.16 has been uploaded to PyPi. This release mainly brings the implementation of new style actions to ease customization of Camelot projects. There is a tutorial that shows its features :

Re: [PyQt] setting color of window titlebar or window background

2011-10-17 Thread Erik Janssens
we use a stylesheet for this purpose, they are rather easy to implement, and you can have one for test, pre-production, production ... http://doc.qt.nokia.com/latest/stylesheet.html On Mon, 2011-10-17 at 22:00 +0200, Hans-Peter Jansen wrote: On Sunday 16 October 2011, 21:14:44 Brad Buran

[PyQt] Camelot 11.09.10 released

2011-09-10 Thread Erik Janssens
Hello, Camelot 11.09.10 has been released. This is a stable release with minor modifications. The most important change is probably the availability of API documentation. Regards, Erik Changes : * Refresh reexecutes queries in the table view * Deleted entities are grayed out in the GUI

Re: [PyQt] internalPointer crashes

2011-08-26 Thread Erik Janssens
what is a crash in PyQt can be a memleak in PySide ;) On Fri, 2011-08-26 at 14:12 -0400, Joel B. Mohler wrote: Hi, Back in April of this year Jeremy Sanders reported crashes when storing a python object in QModelIndex internalPointer. I've had crashes of this nature as well. It seems

[PyQt] segfault when using Qt.QueuedConnection

2011-08-25 Thread Erik Janssens
Hi, After lots of tries I have been able to get a stacktrace + core of a segfault that I believe occurs from time to time. The attached stacktrace shows the segfault is inside the QT event loop, without even involving Python. What I believe that happens is this : 1) A signal is connected to a

[PyQt] segfault when using Qt.QueuedConnection

2011-08-25 Thread Erik Janssens
I've tried to create a test case for the previously reported issue. It appears the bug does not appear when the queued slot call is made after the sender has been deleted, but only if the call is made while the sender is deleted. To run the case, use : python -m nose.core \\

[PyQt] subtle bug in PyQt in combination with Python garbage collector

2011-08-13 Thread Erik Janssens
Hello Phil, I believe to have found a subtle bug in PyQt in combination with the Python garbage collector. Here is what I think that happens : - A QObject is constructed in one thread, and this QObject construction contains a cyclic dependency. - this construction will not be deleted with

[PyQt] correction on bug report

2011-08-13 Thread Erik Janssens
PySide does not suffers from the same problem, instead it appears to have a memory leak ... ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] pyqt documentation vs qt documentation

2011-07-23 Thread Erik Janssens
Hi, just wanted to note that the PyQt documentation does not mark deprecated methods as such, while the Qt documentation does. eg : QHBoxLayout.setMargin is deprecated, but appears as a normal method in the PyQt docs Regards, Erik ___ PyQt mailing

Re: [PyQt] Inter-office distribution/installation of packages/modules

2011-07-03 Thread Erik Janssens
. For our client, many dlls are updated on a regular basis for bug fixes. But you can update python code, since it's just stored in a .zip file (just have the updater dl the updated zip file and copy it over). On Tue, Jun 28, 2011 at 6:41 PM, Erik Janssens erik.janss...@conceptive.be wrote

Re: [PyQt] Inter-office distribution/installation of packages/modules

2011-06-28 Thread Erik Janssens
that is wrong and will only lead to problems down the road. And the last thing, is that we have an auto updater, so new releases only require a rebuild and push to the sever. On Jun 16, 2011 2:58 PM, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I would not agree with using Py2exe, while

Re: [PyQt] Inter-office distribution/installation of packages/modules

2011-06-16 Thread Erik Janssens
Hi, I would not agree with using Py2exe, while the idea is nice, we have had many issues with it, basically for 2 reasons : - it's dependency analysis, in combination with automatic updates : if your update uses a part of a package that was not used in the original package, you need to

Re: [PyQt] Qt Contributors Summit

2011-06-08 Thread Erik Janssens
Hello Phil, good to hear you're going to the contributors summit, here are my main concerns (pretty much in line with the other responses) : - the OpenGL requirement : will this still work decent through remote desktop and citrix. imho this is important for business applications. - QML /

Re: [PyQt] Qt Contributors Summit

2011-06-08 Thread Erik Janssens
- my concern is that we will need to build our apps using a software open gl, simply to be able to use them without difficulties for a large user base. and how this will impact the performance of remote desktop and citrix. Unfortunately, it's not up to me to dictate the users of my

Re: [PyQt] Kudos

2011-04-20 Thread Erik Janssens
build with VS 2008 http://www.python-camelot.com/cpd.html On Wed, Apr 20, 2011 at 7:36 AM, Eric Frederich eric.freder...@gmail.com wrote: Is there a PyQt installer built with Visual Studio? I am embedding a Python interpreter in a 3rd party application and creating bindings to that same 3rd

Re: [PyQt] Segfault: QGraphicsView, cyclic references, and threads

2011-03-28 Thread Erik Janssens
I can confirm the issue in pyqt 4.8.3 / qt 4.7.2 it segfaults, but with the following assert statement : .QObject::killTimers: timers cannot be stopped from another thread ASSERT failure in QCoreApplication::sendEvent: Cannot send events to objects owned by a different thread. Current thread

Re: [PyQt] QMainWindow bug?

2011-01-22 Thread Erik Janssens
implications of doing so. Which book are you refering to ?? Regards, Erik On Sat, Jan 22, 2011 at 3:13 PM, Hans-Peter Jansen h...@urpla.net wrote: On Friday 21 January 2011, 08:47:13 Erik Janssens wrote: Hi, I wrote some general documentation around these issues, with regard to Camelot

[PyQt] QWizardPage.registerField and new style signal slot ?

2011-01-21 Thread Erik Janssens
Hi, how is the method QWizardPage.registerField supposed to work in combination with new style signal slots ? it's third argument should be of type SIGNAL, however when passing as its third argument a QtCore.pyqtSignal object, it complains about an incorrect type. using QtCore.SIGNAL works, but

Re: [PyQt] QMainWindow bug?

2011-01-21 Thread Erik Janssens
a reference in python to a qt object? thanks NIcola Il giorno mer, 19/01/2011 alle 23.47 +0100, Erik Janssens ha scritto: there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding the detection of objects deleted by qt but still referenced in python (which is the case here

Re: [PyQt] QMainWindow bug?

2011-01-20 Thread Erik Janssens
? thanks NIcola Il giorno mer, 19/01/2011 alle 23.47 +0100, Erik Janssens ha scritto: there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding the detection of objects deleted by qt but still referenced in python (which is the case here). in 4.8.1 sip/pyqt tried to detect

Re: [PyQt] QMainWindow bug?

2011-01-19 Thread Erik Janssens
there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding the detection of objects deleted by qt but still referenced in python (which is the case here). in 4.8.1 sip/pyqt tried to detect this to avoid segfaults. this detection however brought other issues with it, therefor the detection was

[PyQt] debugging on windows

2010-12-30 Thread Erik Janssens
Hello All, I am trying to find the cause for a segfault that is probably Qt / PyQt related. But the segfault only happens on Windows. As I am not a windows expert, is there somebody able to explain how to debug / stacktrace / catch coredumps under windows ? All tips are appreciated. Thx,

[PyQt] segfault with latest release

2010-12-30 Thread Erik Janssens
Hi, just got a stacktrace of a segfault under Linux. any suggestions of what I should be looking for ? Thx, Erik Program terminated with signal 11, Segmentation fault. #0 0x0019 in ?? () (gdb) bt #0 0x0019 in ?? () #1 0x0121c209 in QObject::inherits (this=0xc37b6f8,

Re: [PyQt] PyQt API 2: equivalent of Null QVariant?

2010-12-21 Thread Erik Janssens
you could just access sql through python instead of through qt, NULL would then correspond to None On Tue, 2010-12-21 at 23:52 +0100, TP wrote: Phil Thompson wrote: API v1 will be supported until PyQt5 or Python v4. Is it contractual? Why Python v4? It seems to me that nobody knows when

Re: [PyQt] segfault using daily snapshot

2010-12-18 Thread Erik Janssens
like to understand what the line is about ? Another option would be to deploy debug-builds on Windows, but I'm really unfamiliar with doing such thing so I'd like to avoid it. Regards, Erik On Fri, 2010-12-17 at 18:47 +, Phil Thompson wrote: On Fri, 17 Dec 2010 09:17:14 +0100, Erik

[PyQt] creating QWidgets outside the GUI thread

2010-12-17 Thread Erik Janssens
Hi, has anybody experience with creating QWidgets outside the GUI thread ? I'd like to know if it's possible to construct QWidgets in some kind of worker thread, and when they are needed, reparent them and move them to the GUI thread before displaying them. Regards, Erik

Re: [PyQt] Fwd: creating QWidgets outside the GUI thread

2010-12-17 Thread Erik Janssens
! -+ On Fri, Dec 17, 2010 at 10:29, Erik Janssens erik.janss...@conceptive.be wrote: Hi, has anybody experience with creating QWidgets outside the GUI thread ? I'd like to know if it's possible to construct QWidgets in some kind of worker thread, and when they are needed, reparent

Re: [PyQt] QLabel with tabs and newlines crashes Python

2010-12-15 Thread Erik Janssens
it does not crash on my python 2.7 - pyqt 4.8.1 - qt 4.7.1 build on Linux On Wed, Dec 15, 2010 at 10:07 PM, Joe Planisky joe.plani...@temboo.com wrote: Hi, I've run into a strange situation with displaying text containing tab (\t) and newline (\n) characters in a QLabel.  The following code

[PyQt] segfault using daily snapshot

2010-12-13 Thread Erik Janssens
Hello Phil, one of my stress-test revealed a segfault occuring occasionaly. I'm using a build of the latest qt release + pyqt snapshots. Unfortunately, I have not been able to reproduce it yet with a debug build. Unless this stacktrace rings a bell somewhere, I'll try to investigate it

[PyQt] building pyqt and qt.conf

2010-12-11 Thread Erik Janssens
Hi, I was trying to build the latest snapshot of PyQt and for a reason I don't understand, PyQt would always build against QT installed on the system, despite pointing it explicitly to a custom QT build using the -q option. After many hours of looking, I found this was due to the fact that I had

Re: [PyQt] building pyqt and qt.conf

2010-12-11 Thread Erik Janssens
ok, thanks ! my build script now temporary removes qt.conf when building pyqt... On Sat, Dec 11, 2010 at 5:35 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 11 Dec 2010 14:31:08 +0100, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I was trying to build the latest

Re: [PyQt] PyQt crash on windows soon after instantiating Qt objects

2010-12-11 Thread Erik Janssens
Hello Blaine, crashes are always interesting. can you create an as small as possible example that crashes ? if possible, run it in a debugger as well, to see where exactly it crashes, eg withing qt or pyqt or something else... Erik On Sun, Dec 12, 2010 at 2:38 AM, Blaine Bell

Re: [PyQt] image utilities in Qt

2010-12-04 Thread Erik Janssens
QImage has a 'scaled' method that can be used to create thumbnails On Sat, Dec 4, 2010 at 9:52 PM, James Polk jpolk5...@yahoo.com wrote: I've found hints that Qt supports some image handling basics.. Is there any kind of functionality for image conversion? And/or basic image resizing,

[PyQt] Camelot 10.11.27 : leverage Python, PyQT and SQLAlchemy

2010-11-27 Thread Erik Janssens
Dear all, Camelot 10.11.27 has been released. This release uses the new style signal slots connections. Camelot is an open source RAD framework that leverages Python, Sqlalchemy and Qt to build database applications. Inspired by the Django admin interface, Camelot allows a developer to define

Re: [PyQt] Getting information about crash/lockup

2010-11-02 Thread Erik Janssens
running this through gdb, got the debug symbols but so far I haven't been able to make sense of it. /Mikael On 2 November 2010 17:50, Erik Janssens erik.janss...@conceptive.be wrote: Hello Mikael, first of all, you should use the latest version of PyQT / QT, because previous versions

Re: [PyQt] test case for deadlock in signal / slot new style

2010-10-07 Thread Erik Janssens
Thanks for making my day ! I was already considering a complete refactoring to get around the issue. On Thu, 2010-10-07 at 11:09 +0100, Phil Thompson wrote: On Mon, 4 Oct 2010 22:27:59 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I finally got around writting a simple

Re: [PyQt] help needed for PyQt compiling

2010-10-04 Thread Erik Janssens
Hi, I have no idea on how to fix your issues, but I just compiled pyqt for windows yesterday, you can download it at : http://www.python-camelot.com/get-it.html if you want. it's compiled with visual studio tough... Erik On Mon, Oct 4, 2010 at 12:18 PM, sunilrajkiran pichaimani

[PyQt] test case for deadlock in signal / slot new style

2010-10-04 Thread Erik Janssens
Hi, I finally got around writting a simple test case to demonstrate the deadlock in the signal/slot new style connections. The test case can be ran using the following command : python -m nose.core -v -s test_deadlock.py:SignalSlotCase depending on the speed of your computer, it might take

[PyQt] qt 4.7 build for windows available

2010-10-02 Thread Erik Janssens
Hi, because there are some critical bugs in qt 4.7 that made our applications segfault, I have made a custom pyqt build for qt4.7, it can be downloaded from : http://www.python-camelot.com/get-it.html it's just a zip file, that you need to add to your PATH / PYTHONPATH. Regards, Erik

Re: [PyQt] building pyqt on windows

2010-10-01 Thread Erik Janssens
, Phil Thompson wrote: On Fri, 01 Oct 2010 09:21:27 +0200, Erik Janssens erik.janss...@conceptive.be wrote: I made some changes to sipconfig.py to get it running... On Thu, 2010-09-30 at 22:26 +0100, Phil Thompson wrote: On Thu, 30 Sep 2010 23:19:24 +0200, Erik Janssens erik.janss

[PyQt] building pyqt on windows

2010-09-30 Thread Erik Janssens
Hi, I'm trying to build PyQt on Windows, because I want a QT 4.7 build with OpenSSL included. And I try to build them all with the same MS compiler, to be able to debug everything afterwards. So far OpenSSL, QT and SIP build fine, but when I try to configure PyQt, it only recognizes the QtCore

Re: [PyQt] Advice for thread/process output logging, Windows debugging

2010-09-16 Thread Erik Janssens
Hello Steve, We've ran in more or less the same issues with the recent refactoring of Camelot, here are some things I learned (but I haven't found a decent solution yet) : - those kind of bugs tend to appear more frequent on windows than on Linux, I don't know why. But they happen on Linux

Re: [PyQt] sip segfault in disconnectNotify

2010-09-10 Thread Erik Janssens
in it ensures that it doesn't segfaults, but I would like to understand why it segfaults. Thank you and best regards, Erik On Thu, 2010-09-09 at 15:46 +0100, Phil Thompson wrote: On Thu, 09 Sep 2010 16:35:15 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I understand

[PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Erik Janssens
Hello Phil, I'm experiencing a segmentation fault in sip. I have build the latest released versions of sip and pyqt on ubuntu, to be able to have a decent stack trace. The issue only arises when objects are garbage collected, so I'm unsure on how to build a simple test case for it ? When I

Re: [PyQt] sip segfault in disconnectNotify

2010-09-09 Thread Erik Janssens
you and best regards, Erik On Thu, 2010-09-09 at 09:06 +0100, Phil Thompson wrote: On Thu, 09 Sep 2010 09:40:43 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hello Phil, I'm experiencing a segmentation fault in sip. I have build the latest released versions of sip

Re: [PyQt] deadlock when using new style signal / slots

2010-09-06 Thread Erik Janssens
. Best regards, Erik On Mon, 2010-09-06 at 10:43 +0200, Hans-Peter Jansen wrote: Dear Erik, On Friday 27 August 2010, 21:56:14 Erik Janssens wrote: Hi, Another issue popped up when porting our code to new style signal slots. it appears the deadlock occurs when one thread

Re: [PyQt] server installation of pyqt

2010-09-04 Thread Erik Janssens
you need to add the location of the qt DLL's to the PATH of the users (which might not be possible in a server set up), or simply copy all the DLL's to the same location as python.exe, that will do the trick. notice that having clients run pyqt apps, where the pyqt binaries are on a network

[PyQt] new style signal/slot and sender() method

2010-08-27 Thread Erik Janssens
Hi, We are switching our codebase to new style signal/slot and this is a strange issue. When connecting a QComboBox currentIndexChanged signal to a slot : def granularity_changed(self, idx): granularity = self.sender().get_value() sender returns the right object, however, when

[PyQt] deadlock when using new style signal / slots

2010-08-27 Thread Erik Janssens
Hi, Another issue popped up when porting our code to new style signal slots. it appears the deadlock occurs when one thread is emitting using a pyqtSignal object, while another thread is connecting the same pyqtSignal object to a slot, this is the pseudocode for the connection : class(...):

[PyQt] segfaults in sip getattr

2009-09-15 Thread Erik Janssens
Hi, I'm having segfaults in the sip getattr function. Apparently the code somewhere tries to resolve the '__dtor__' attribute. This appears to happen when a bunch of widgets get destructed. Nowhere in the code have custome __del__ or __dtor__ methods been implemented. Any idea on what is

Re: [PyQt] random deadlocks in pyqt application

2009-09-01 Thread Erik Janssens
...@conceptive.be Cc: PyQT mailing list pyqt@riverbankcomputing.com Message-ID: 1251678494.4741.26.ca...@ozzu Content-Type: text/plain On dom, 2009-08-30 at 11:22 +0200, Erik Janssens wrote: Hi, I'm having random deadlocks in my pyqt application (I don't do any locking and such in the app itself

[PyQt] random deadlocks in pyqt application

2009-08-30 Thread Erik Janssens
Hi, I'm having random deadlocks in my pyqt application (I don't do any locking and such in the app itself, but the app has 2 QThreads). They appear to occur random when the application is used like a madman (opening and closing windows all the time). A strange observation is that the chances

[PyQt] Re: Re: QStyle manipulations

2009-07-25 Thread Erik Janssens
Message: 2 Date: Fri, 24 Jul 2009 17:56:32 -0500 From: Robert Kern robert.k...@gmail.com Subject: [PyQt] Re: QStyle manipulations To: pyqt@riverbankcomputing.com Message-ID: h4de70$pg...@ger.gmane.org Content-Type: text/plain; charset=UTF-8; format=flowed On 2009-07-24 10:26, Phil

[PyQt] GUI freezing when running large function in QThread

2009-07-22 Thread Erik Janssens
I'm doing exactly the same in our application (Validation and database access in a separate thread), and I have no issues whatsoever with the GUI still freezing. So I'm not sure either if the GIL is causing this and if you really need to spawn another process (given the additional issues this

[PyQt] model/view/delegate: data() method called too many times? Performance problem (TP)

2009-05-15 Thread Erik Janssens
data it is called multiple times on the same cell, but for a different role (eg : it is called once to get the text to display, and another time to get the font size). but you must make sure the data method returns very fast, because it will get called a lot, since the view itself contains no

[PyQt] Re: faster alternative to QHeaderView's resizeToContents?

2009-05-09 Thread Erik Janssens
I've had similar issues. One possibility I tried was first only loading 20 rows in the table, then do the resizeToContents and only then loading the full data. That way, the columns are layout to fit those 20 rows. It works well overall, but I later have just set all the column widths

Re: [PyQt] postgresql

2009-03-19 Thread Erik Janssens
Indeed the model/view/delegate framework is very flexible and remains snappy, even when displaying POPO's. The advantage of using an orm is that you can display properties of your objects, along with attributes. sqlalchemy / elixir is a very flexible framework that makes using complex queries

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Erik Janssens
Hi, In my experience the big challenge with large applications with lots of computations is to keep them responsive. This is difficult in either C++ or python. I've run in a lot of difficulties in the past with a large C++ QT app. When you want your application to be multithreaded, you should

Re: [PyQt] Mayavi, VTK and PyQt

2009-02-08 Thread Erik Janssens
Hello Christophe, I once addapted the QVTKRenderWindowInteractor to work with the latest release of pyqt. Unfortunately it's not perfect yet and it does work only on my windows machine. So should you make improvements to it, please post it back. Regards, Erik On Sun, 2009-02-08 at 00:57

[PyQt] Fosdem 2009

2009-02-05 Thread Erik Janssens
Dear all, For those of you who attend FOSDEM this year, you might be interested in the short tutorial I will present on building GUI applications with PyQt and Elixir/Sqlalchemy. more information can be found at : http://www.fosdem.org/2009/schedule/events/camelot Regards, Erik

[PyQt] segfault : interpreting back trace

2008-11-23 Thread Erik Janssens
Hi, I'm having a pyqt segmentation fault, and I cannot find out what is causing it. Can somebody make some suggestions on how to handle this ? I tried to use gdb to get a back trace, but it doesn't make much sense to me, it seems to be related to a c-function call, but I don't know which one

[PyQt] commitData signal with custom delegates

2008-10-01 Thread Erik Janssens
Dear all, I have created a custom editor widget together with a custom delegates, used in a form together with a QDataWidgetMapper. According to the documentation (and the source code confirms this), when the editor has finished editing, the delegate should emit the commitData signal, if this is