[PyQt] minor bug in examples

2010-06-03 Thread Danny Shevitz
Howdy, I'm new to PyQt and found a minor bug in the mdi mainwindows sample. In lines 93 and 95 of mdi.pyw, QApplication is a member of the QtGui module, not QtCore as written. The code should read: QtGui.QApplication.setOverrideCursor(QtCore.Qt.WaitCursor) outstr << self.toPlainText() Q

Re: [PyQt] splitters

2010-06-03 Thread Lic . José M . Rodriguez Bacallao
could U please give me an example? On Thu, Jun 3, 2010 at 3:06 PM, Matt Newell wrote: > On Thursday 03 June 2010 11:06:04 Lic. José M. Rodriguez Bacallao wrote: >> no one? >> >> On Wed, Jun 2, 2010 at 9:24 AM, Lic. José M. Rodriguez Bacallao >> >> wrote: >> > what I mean is something like the fi

[PyQt] precompiled header to define a variable type which is primitive

2010-06-03 Thread Blaine Bell
I have a variable uint64 that I want to use in a SIP file for arguments, return values, and parts of MappedTypes (i.e., types such as std::map which are used in functions). This variable uint64 is defined differently on platforms in a header: #if defined(WIN32) && defined(_MSC_VER) && _MSC_VE

Re: [PyQt] splitters

2010-06-03 Thread Matt Newell
On Thursday 03 June 2010 11:06:04 Lic. José M. Rodriguez Bacallao wrote: > no one? > > On Wed, Jun 2, 2010 at 9:24 AM, Lic. José M. Rodriguez Bacallao > > wrote: > > what I mean is something like the first case, and yes, I know that I > > can nest several splitters but the problem is that I want

Re: [PyQt] splitters

2010-06-03 Thread Lic . José M . Rodriguez Bacallao
no one? On Wed, Jun 2, 2010 at 9:24 AM, Lic. José M. Rodriguez Bacallao wrote: > what I mean is something like the first case, and yes, I know that I > can nest several splitters but the problem is that I want that those > splitters in the first case have a common handler to resize all > splitted

Re: [PyQt] Performance problems with QSortFilterProxyModel

2010-06-03 Thread Steve Borho
On Tue, May 11, 2010 at 8:33 PM, Steve Borho wrote: > Hello, > > The TortoiseHg project is currently porting all of our PyGTK apps to > PyQt, This has been going pretty well so far, but I've hit a snag with > our file status browser. > > I have a simple QAbstractTableModel (4 columns) being displa

Re: [PyQt] sip %ConvertToSubClassCode problem with %TypeHeaderCode doesn't work as expected.

2010-06-03 Thread Phil Thompson
On Thu, 03 Jun 2010 11:19:31 -0400, Blaine Bell wrote: > Phil Thompson wrote: >> On Thu, 03 Jun 2010 10:19:11 -0400, Blaine Bell >> wrote: >> >>> Hi Phil, >>> >>> Thanks a lot for your quick response. Unfortunately, I am using >>> sip-4.9.3, and neither of these fixes you have listed below w

Re: [PyQt] sip %ConvertToSubClassCode problem with %TypeHeaderCode doesn't work as expected.

2010-06-03 Thread Blaine Bell
Phil Thompson wrote: On Thu, 03 Jun 2010 10:19:11 -0400, Blaine Bell wrote: Hi Phil, Thanks a lot for your quick response. Unfortunately, I am using sip-4.9.3, and neither of these fixes you have listed below work for me. (sipType_ChmMainWindow or %ModuleCode is not recognized). Also,

Re: [PyQt] Error when converting QVariant back to Python object

2010-06-03 Thread Phil Thompson
On Sat, 29 May 2010 19:46:58 +0100, Baz Walter wrote: > On 29/05/10 17:37, Baz Walter wrote: >> On 29/05/10 10:00, Phil Thompson wrote: >>> Fixed in the current PyQt snapshot - sort of. It assumes that the char * >>> refers to a '\0' terminated string, which may not be the case. >>> >>> Although e

[PyQt] QColorDialog in a graphics scene

2010-06-03 Thread Tom Batkiewicz
Hello all, I've been trying to embed a QColorDialog into a QGraphicsScene using a QProxyWidget. This works as expected with a QFileDialog, but with a QColorDialog a second window is created for the color dialog, though the dialog is rendered inside of the graphics scene. Dragging around this ext

Re: [PyQt] sip %ConvertToSubClassCode problem with %TypeHeaderCode doesn't work as expected.

2010-06-03 Thread Phil Thompson
On Thu, 03 Jun 2010 10:19:11 -0400, Blaine Bell wrote: > Hi Phil, > > Thanks a lot for your quick response. Unfortunately, I am using > sip-4.9.3, and neither of these fixes you have listed below work for me. > (sipType_ChmMainWindow or %ModuleCode is not recognized). > > Also, looking into t

Re: [PyQt] sip %ConvertToSubClassCode problem with %TypeHeaderCode doesn't work as expected.

2010-06-03 Thread Blaine Bell
Hi Phil, Thanks a lot for your quick response. Unfortunately, I am using sip-4.9.3, and neither of these fixes you have listed below work for me. (sipType_ChmMainWindow or %ModuleCode is not recognized). Also, looking into the cmodule.cpp file, sipType does not get instantiated in the stati

Re: [PyQt] sip %ConvertToSubClassCode problem with %TypeHeaderCode doesn't work as expected.

2010-06-03 Thread Phil Thompson
On Wed, 02 Jun 2010 17:20:26 -0400, Blaine Bell wrote: > I am new to using SIP, and I find it *very* difficult to find reasonable > documentation and examples to do what I need to do. I want to be able > to have SIP automatically cast my instances to a subclass. I am using > "%ConvertToSubCla