[PyQt] Completely removing items from a layout

2009-11-27 Thread Lee Harr
I wrote about this a couple of weeks ago, but I did not have a small working example to show the problem I'm having. Now I do. I have a layout created in Qt4 Designer which I fill with a series of complex layouts at runtime. That works great. Later on, I want to completely remove all of them and

[PyQt] Troubles with QWebView

2009-11-27 Thread Kastner Mario
I L.O.V.E PyQt4 ... really! But at this time i am realy at the end of my knowledge. I have following code: SNIPPET START from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * class PythonJS(QObject): @pyqtSignatur

[PyQt] crash: *** glibc detected *** python: double free or corruption (fasttop): 0x0a802370 ***

2009-11-27 Thread Tom Kuiper
Greetings! A pyQt4 application using QThread (I suspect this is relevant) crashed unpredictably with the above error message. Searching the web I found this type of error in many diverse applications, not just Python or pyqt4. I could not find a clue to resolving this problem. I'm somewhat

Re: [PyQt] Object::disconnect: Unexpected null parameter

2009-11-27 Thread Phil Thompson
On Fri, 27 Nov 2009 23:18:04 +0100, Mads Ipsen wrote: > After having upgraded from > > sip-4.9.1 and PyQt-4.6.1 > > to > > sip-4.9.3 and PyQt-4.6.2 > > on both Win32 and Linux, we literally get 100's of warnings of the form > > Object::disconnect: Unexpected null parameter > > when running

[PyQt] Object::disconnect: Unexpected null parameter

2009-11-27 Thread Mads Ipsen
After having upgraded from sip-4.9.1 and PyQt-4.6.1 to sip-4.9.3 and PyQt-4.6.2 on both Win32 and Linux, we literally get 100's of warnings of the form Object::disconnect: Unexpected null parameter when running our unit test suite. Since I have never seen this before I'm puzzled as what to

Re: [PyQt] setting Popup windowFlag causes system to become unresponsive

2009-11-27 Thread Hans-Peter Jansen
On Friday 27 November 2009, 19:34:31 Jugdish wrote: > For some reason if I set the windowFlag "Popup" on a QListWidget, the > widget takes modal focus and it is impossible to give focus back to any > widget. In fact, my entire system becomes unresponsive. Only the > QListWidget responds to input, a

Re: [PyQt] setting Popup windowFlag causes system to become unresponsive

2009-11-27 Thread Baz Walter
Jugdish wrote: For some reason if I set the windowFlag "Popup" on a QListWidget, the widget takes modal focus and it is impossible to give focus back to any widget. In fact, my entire system becomes unresponsive. Only the QListWidget responds to input, and I have no way of killing the process. He

[PyQt] another pure python signal/slot implementation

2009-11-27 Thread Miguel Turner
For those interested in using signals and slots outside of PyQt, I've released my implementation as part of a collection of modules I've found useful. This implementation can be used in almost the same way as PyQt's pyqtSignal, though without needing to inherit from a class or specify signal argum

Re: [PyQt] QTableWidget editing question

2009-11-27 Thread Baz Walter
Steve Zatz wrote: I am new to qt and pyqt but have been using wxPython for a long time. I am converting a moderately complex application from wxPython to pyqt and have been impressed with the ease of using pyqt. Here's my question and I apologize for the verbiage. The ability to get at the defa

[PyQt] setting Popup windowFlag causes system to become unresponsive

2009-11-27 Thread Jugdish
For some reason if I set the windowFlag "Popup" on a QListWidget, the widget takes modal focus and it is impossible to give focus back to any widget. In fact, my entire system becomes unresponsive. Only the QListWidget responds to input, and I have no way of killing the process. Here is a very stri

[PyQt] QTableWidget editing question

2009-11-27 Thread Steve Zatz
I am new to qt and pyqt but have been using wxPython for a long time. I am converting a moderately complex application from wxPython to pyqt and have been impressed with the ease of using pyqt. Here's my question and I apologize for the verbiage. The ability to get at the default widget text edit

Re: [PyQt] QMap and unsigned int

2009-11-27 Thread Oliver Heyme
Okay, that was easy to fix! Thanks for the quick reply, Oli On Fri, Nov 27, 2009 at 10:22 AM, Phil Thompson wrote: > On Fri, 27 Nov 2009 10:08:36 +0100, Oliver Heyme > wrote: >> Hej, >> >> I am using (on Windows with Qt 4.6_rc) the latest versions of sip and >> PyQt4. >> >> I having some troubl

Re: [PyQt] QMap and unsigned int

2009-11-27 Thread Phil Thompson
On Fri, 27 Nov 2009 10:08:36 +0100, Oliver Heyme wrote: > Hej, > > I am using (on Windows with Qt 4.6_rc) the latest versions of sip and > PyQt4. > > I having some trouble with the QMap. > On of my classes has the following method: > > const QMap* materialList() const; > > When I am using this

[PyQt] QMap and unsigned int

2009-11-27 Thread Oliver Heyme
Hej, I am using (on Windows with Qt 4.6_rc) the latest versions of sip and PyQt4. I having some trouble with the QMap. On of my classes has the following method: const QMap* materialList() const; When I am using this in the sip-file for the class I get the error: sip: LBBApplication::materialL