[PyQt] fixed size array
phil at riverbankcomputing.com
Mon Mar 21 10:42:08 GMT 2011
On Mon, 21 Mar 2011 11:28:38 +0100, John Beuving <johnbeuving at gmail.com>
> I have the following c++ code which I want to sip.
> struct message
> int id;
> char username;
> char field;
> The sip parser gives a syntax error on the line with the square
> What is the best solution to work around this problem?
Array support is on the TODO list.
The easiest workaround is to define a UserName %MappedType that does the
conversion and the necessary bounds checks and define username with the
UserName type. This is all in the .sip file, you don't need to change the
Or you can be a bit more clever and do something like...
typedef CharArray<250> UserName;
typedef CharArray<20> Field;
More information about the PyQt