Re: [PyQt] Fwd: threading and qt warnings

2007-09-07 Thread Darren Dale
On Friday 07 September 2007 04:09:02 am Phil Thompson wrote: On Thursday 06 September 2007, Darren Dale wrote: Hello, I am writing some code to allow a pyqt4 program to be run with ipython in a separate thread. Using python-2.5.1, qt-4.3.1 and pyqt-4.3, I get the following warning

[PyQt] Re: How to set some attributes to the Application Window

2007-09-07 Thread Gustavo A. Díaz
Non help about this? :( 2007/9/5, Gustavo A. Díaz [EMAIL PROTECTED]: Hi ! I was searching a lot and playing around with setFlags to my mainWindow to make possible two things: - I want to disable my app to be placed on the taskbar/kicker/whatever when i execute it, cause i do not use

Re: [PyQt] deleting QTreeWidgetItem

2007-09-07 Thread Michael Towers
Phil Thompson wrote: On Friday 07 September 2007, Michael Towers wrote: Hi all, Could someone confirm (or otherwise!) my understanding of the way PyQt4 deals with management of Qt objects? If I want to delete a QTreeWidgetItem and all its children from a tree (and release all connected

[PyQt] Catching Qt exceptions in PyQt

2007-09-07 Thread Dirk Wagener
Hi I have a piece of code that produces this error: Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. I implemented my own app class as

[PyQt] a CustomEvent in KTMLPart crashes eventFilter

2007-09-07 Thread Jean-Michel Vourgère
Hi. I've been digging into a bug for a few days, now. After upgrading from Debian Sarge to Etch, our python application crashes (SEGV) if we install an event filter. Attached is a minimal example of the problem. The application doesn't crash when commenting out the installEventFilter, despite

Re: [PyQt] Catching Qt exceptions in PyQt

2007-09-07 Thread Claudio A. Quezada R.
Hello, i´ve got the very same trouble several of times, and i tried to reimplement notify, but the same exception was thrown over and over again. I changed the code (finding where was the error) and exception didn´t appear again. It´s seems easier debug and change the code than reimplement

[PyQt] deleting QTreeWidgetItem

2007-09-07 Thread Michael Towers
Hi all, Could someone confirm (or otherwise!) my understanding of the way PyQt4 deals with management of Qt objects? If I want to delete a QTreeWidgetItem and all its children from a tree (and release all connected storage), is it enough to do the following? p = item.parent()

Re: [PyQt] Catching Qt exceptions in PyQt

2007-09-07 Thread Allen Bierbaum
I don't know what you are doing wrong or what causes this, but I do know that we see it all the time when trying to debug and it makes the entire process very painful. If you find any type of solution that works so you can see the exception that is being thrown, please let me know so we can use

Re: [PyQt] Fwd: threading and qt warnings

2007-09-07 Thread Phil Thompson
On Thursday 06 September 2007, Darren Dale wrote: Hello, I am writing some code to allow a pyqt4 program to be run with ipython in a separate thread. Using python-2.5.1, qt-4.3.1 and pyqt-4.3, I get the following warning messages at each timeout: QSocketNotifier: Can only be used with

Re: [PyQt] a CustomEvent in KTMLPart crashes eventFilter

2007-09-07 Thread Jim Bublitz
One additional comment (that just occurred to me) - your version will work if you don't try to display a page (begin - write - end) before starting the event loop in KApplication. That's probably what's causing the crash. Jim ___ PyQt mailing list

[PyQt] Adding properties to a custom widget

2007-09-07 Thread skawaii
I've looked around and tried things for a couple of days now, but haven't been able to figure this out quite yet. I've created a custom widget in Qt Designer. It's working great and I'd like to be able to use this widget in future GUI's that I make (obviously). When in the Edit Custom Widgets