[PyKDE] QWindowsXPStyle causing unresolved external symbols with PyQt 3.7 build

2003-07-07 Thread Tuvi, Selim
I am getting unresolved external symbols when building PyQt 3.7 (commercial version) with Visual Studio .Net 2002 with Qt 3.1.1. I believe when I compiled Qt, I specified Windows XP Style support as a plugin (not direct). Is there a way to avoid the link errors or to exclude this class from th

RE: [PyKDE] QWindowsXPStyle causing unresolved external symbols w ithPyQt 3.7 build

2003-07-08 Thread Tuvi, Selim
ure? Thanks -Selim Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-926-3376 Fax:650-926-4335 -Original Message- From: Phil Thompson [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:53 AM To: Tuvi, Selim; [EMAIL PROTECTED] Subject: Re: [PyKDE

[PyKDE] QWindowsXPStyle problem

2003-07-15 Thread Tuvi, Selim
After successfully compiling and running PyQt 3.7 without the QWindowsXPStyle class as documented in my previous posts, I decided to re-compile Qt 3.1.1 and specified Windows XP Style as "direct". No problems compiling PyQt this time, but when I tried "from qt import *" I got the following error

[PyKDE] RE: QWindowsXPStyle problem

2003-07-15 Thread Tuvi, Selim
Please disregard my previous post, forgot to do a 'nmake install' :-) -Selim Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-926-3376 Fax:650-926-4335 -Original Message----- From: Tuvi, Selim Sent: Tuesday, July 15, 2003 3:27 PM To: &#x

RE: [PyKDE] SIP Support for C++ Operators and Exceptions

2003-07-24 Thread Tuvi, Selim
Phil, we just tried your suggestion and added a wrapped exception class and enabled the -e flag. Although it does translate the C++ exception to Python properly, it does it a little different than the regular Python exceptions would. In Python, one would write: try: raise RuntimeError, "Got a

RE: [PyKDE] pyuic and custom widgets

2003-08-04 Thread Tuvi, Selim
If you are using PyQt 3.6 or later you can do this. From the PyQt online documentation page 2 (x113.html): It is sometimes useful to be able to include some specific Python code in the output generated by pyuic. For example, if you are using custom widgets, pyuic has no way of knowing the name

[PyKDE] QStyleFactory and setStyle

2003-10-14 Thread Tuvi, Selim
Before I report it to Trolltech I wanted to get your feedback on this problem. I have a preference option in my application to set the style. When the application initially loads it reads the style preference from the configuration file and sets the style. This works fine, but if the user trie

RE: [PyKDE] Hi

2004-01-20 Thread Tuvi, Selim
The following e-mail was not sent by me, please ignore it. Thanks -Selim Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-926-3376 Fax:650-926-4335 -Original Message- From: Tuvi, Selim Sent: Monday, January 19, 2004 7:45 AM To: [EMAIL PROTECTED] Sub

[PyKDE] Including database support in Qt runtime

2004-01-20 Thread Tuvi, Selim
Hi all, I recently compiled Qt 3.2.3 under Windows XP and selected MySql and Oracle support as 'Direct' in Advanced Options. The problem is that whenever a Qt or PyQt application runs it expects the MySql and Oracle runtime libraries to be in the search path. We'd like to distribute our applica

[PyKDE] Conditional SIP processing based on the PyQt version

2004-01-22 Thread Tuvi, Selim
Hi, I noticed that beginning with PyQt 3.9 the sip files are divided into subdirectories. We have a SIP interface where we need to import some of the core SIP files from the PyQt distribution. But I don't want to break the compilation in case the code is compiled against an old version of PyQt.

RE: [PyKDE] Including database support in Qt runtime

2004-01-22 Thread Tuvi, Selim
Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-926-3376 Fax:650-926-4335 -Original Message- From: Phil Thompson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:14 AM To: Tuvi, Selim; [EMAIL PROTECTED] Subject: Re: [PyKDE] Including

RE: [PyKDE] ANN: PyQt v3.11 and SIP v3.10.1 Released

2004-03-11 Thread Tuvi, Selim
Similar error in building the Windows version of PyQt 3.11: Checking to see if the QCDEStyle class is a plugin... cfgtest.cpp Checking to see if the QInterlaceStyle class is a plugin... cfgtest.cpp cfgtest.cpp(5) : error C2061: syntax error : identifier 'QInterlaceStyle' Other than that it compil

[PyKDE] Memory leak in QFileDialog?

2004-04-09 Thread Tuvi, Selim
I am experiencing memory leak like behavior when I use the instantiation method of opening a file with QFileDialog under Windows XP. Attached is a modified version of the application.py script. If I click on "Open File" toolbar icon and escape out about 8 times then the task manager memory usage

RE: [PyKDE] Memory leak in QFileDialog?

2004-04-10 Thread Tuvi, Selim
004 11:51 PM Subject: Re: [PyKDE] Memory leak in QFileDialog? On Saturday 10 April 2004 05:28, Tuvi, Selim wrote: > I am experiencing memory leak like behavior when I use the instantiation method of opening a file with QFileDialog under Windows XP. > Attached is a modified version of the a

RE: [PyKDE] Re: PyKDE] SIP 4.0 problems

2004-04-10 Thread Tuvi, Selim
Phil with SIP 4.0 we ran into GUI stability problems when we compiled PyQt without the -g option (the GUI would sometimes would not respond, maybe /ReleaseGIL/ is required in more places?). And in the sihippo package used below, when we put /ReleaseGIL/ for the SIP methods that required it then

RE: [PyKDE] Memory leak in QFileDialog?

2004-04-12 Thread Tuvi, Selim
Fax:650-926-4335 -Original Message- From: Phil Thompson [mailto:[EMAIL PROTECTED] Sent: Saturday, April 10, 2004 12:00 PM To: [EMAIL PROTECTED] Cc: Tuvi, Selim Subject: Re: [PyKDE] Memory leak in QFileDialog? On Saturday 10 April 2004 4:28 am, Tuvi, Selim wrote: > I am experiencing

[PyKDE] RE: Python crash with qtsql.QSqlDatabase

2004-05-04 Thread Tuvi, Selim
PROTECTED] Sent: Tuesday, May 04, 2004 2:22 PM To: Tuvi, Selim Cc: [EMAIL PROTECTED] Subject: Re: Python crash with qtsql.QSqlDatabase On Tuesday 04 May 2004 12:48 am, Tuvi, Selim wrote: > Not sure if this is a Qt bug or a PyQt bug but I am getting a crash on the last line of the following sess

[PyKDE] Python crash with qtsql.QSqlDatabase

2004-05-03 Thread Tuvi, Selim
Not sure if this is a Qt bug or a PyQt bug but I am getting a crash on the last line of the following session (db.open()): >>> from qt import * >>> from qtsql import * >>> a = QApplication() >>> import sys >>> a = QApplication(sys.argv) >>> db = QSqlDatabase.addDatabase('QMYSQL3') >>> db.isOpen()

[PyKDE] Crash in Windows during a long run

2004-11-15 Thread Tuvi, Selim
Hi, our PyQt application crashed over the weekend during a long run. I dropped into the Visual Studio debugger and took a screen shot of the call stack. It seems to happen in msvcr71.dll!memset() after it was called from sip.pyd (see attached screen shot). Unfortunately, Qt, PyQt and SIP were c

[PyKDE] Slow memory leak when paintCell is overridden in QListViewItem

2004-11-19 Thread Tuvi, Selim
Hi, we have a module which displays some statistics in a QListView. We wanted to change how the list view looked like so we subclassed the QListViewItem and implemented our own paintCell method. When we override the paintCell method, we observe a slow memory leak. If we do not override the pain

[PyKDE] RE: Slow memory leak when paintCell is overridden in QListViewItem

2004-11-22 Thread Tuvi, Selim
afterwards (I ran it for about half an hour). -Selim > -Original Message- > From: Phil Thompson [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 21, 2004 5:12 AM > To: Tuvi, Selim > Cc: [EMAIL PROTECTED] > Subject: Re: Slow memory leak when paintCell is overridden in >

[PyKDE] QCustomEvent::QCustomEvent ( Type type, void * data ) constructor no longer supported?

2005-02-15 Thread Tuvi, Selim
The following code which used to work with PyQt 3.13 does not work with PyQt-commercial-snapshot-20050211: class PorcineEvent(qt.QCustomEvent): StatusChangeType=qt.QEvent.User+10 CommandingChangeType=qt.QEvent.User+11 def __init__(self,type,data): qt.QCustomEvent.__init__(self

[PyKDE] RE: QCustomEvent::QCustomEvent ( Type type, void * data ) constructor no longer supported?

2005-02-15 Thread Tuvi, Selim
I should add that we are using Windows XP and Visual Studio .NET 2003. PyQt was compiled with SIP 4.2rc2 and Python 2.3.5. -Selim Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-926-3376 Fax:650-926-4335 > -Original Message- > From: Tuvi, Se

[PyKDE] RE: QCustomEvent::QCustomEvent ( Type type, void * data ) constructor no longer supported?

2005-02-16 Thread Tuvi, Selim
ry 16, 2005 1:45 AM > To: Tuvi, Selim > Cc: pykde@mats.imk.fraunhofer.de > Subject: Re: QCustomEvent::QCustomEvent ( Type type, void * data ) > constructor no longer supported? > > > The following code which used to work with PyQt 3.13 does not work with > > PyQt-com

RE: [PyKDE] custom QListView

2005-06-16 Thread Tuvi, Selim
Hi, we used a little different approach and did not use a QLineEdit but maybe you can get some ideas from it. The code is based on the PropertyEditor class of the Qt Designer. Sorry for the lack of comments. -Selim Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-9

RE: [PyKDE] Request for Testing

2005-08-19 Thread Tuvi, Selim
Something broke for us between snapshot sets: (sip-snapshot-20050727, PyQt-commercial-snapshot-20050726) and (sip-snapshot-20050817, PyQt-commercial-snapshot-20050817). If you run the attached script, you should get the following traceback: ERROR:root:GUIbridge.handleCustomEvent(): Caught excep

RE: [PyKDE] Request for Testing

2005-08-23 Thread Tuvi, Selim
My thanks as well, I can confirm that both the 8/21 and 8/22 snapshots work well for our application. I didn't have a chance to run extensive tests for memory leaks though. -Selim Selim Tuvi, Research Engineering Group, SLAC GLAST, I&T Online, MS 98 Tel:650-926-3376 Fax:650-926-4335 > -O

[PyQt] Qt has caught an exception thrown from an event handler

2007-07-05 Thread Tuvi, Selim
Hi, I am working on an app that is crashing with the following 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. The crash occurs intermitte

RE: [PyQt] Re: Crash with shortcircuit signals

2007-07-10 Thread Tuvi, Selim
My run did not crash but it mysteriously exit after three iterations: C:\projects\LICOS\temp\qt4>python crash.py 0 12133768 12133840 1 12133912 12133768 2 12133840 12133912 C:\projects\LICOS\temp\qt4> I can run it multiple times with the same result. I am running with Python 2.5.1, Qt 4.3.0, si