Re: [PyQt] QDataStream.writeUInt8 and writeInt8 unfriendly

2012-05-26 Thread Jarosław Białas
Hi, 2012/5/26 Mickaël THOMAS micka...@gmail.com: Hi, I wanted to point out a very odd behavior (which is not that odd actually, but still...) The documentation says that QDataStream.writeUInt8 and QDataStream.writeInt8 should be passed a str rather than an int, which looks strange to me.

Re: [PyQt] QDataStream.writeUInt8 and writeInt8 unfriendly

2012-05-26 Thread Jarosław Białas
Hi, 2012/5/26 Mickaël THOMAS micka...@gmail.com: Type quint8 is an unsigned byte so I think that char is better solution. http://qt-project.org/doc/qt-4.8/qdatastream.html#operator-lt-lt-3 What do you mean by char is a better solution ? Precision and range of a variable is the same.

[PyQt] Problem with passing QString

2012-03-02 Thread Jarosław Białas
Hi, I have a library in C++ which use opencv-2.3.1. There is a function that open image using path to file (I am using QString because it is easier than converting to char*). Then I use some functions to manipulate image. Finally I want to show image in GUI, so I implemented function which

Re: [PyQt] Problem with passing QString

2012-03-02 Thread Jarosław Białas
a nice day:) -- Jarek On Fri, 2 Mar 2012 13:59:30 +0100, Jarosław Białas jarekbialas.bi...@gmail.com wrote: Hi, I have a library in C++ which use opencv-2.3.1. There is a function that open image using path to file (I am using QString because it is easier than converting to char*). Then I

Re: [PyQt] [SIP]MD5 openssl

2011-07-01 Thread Jarosław Białas
Hello again, In the case that somebody want to help me with that problem, I attached some files. import os import sipconfig # The name of the SIP build file generated by SIP and used by the build # system. build_file = md5test.sbf # Get the SIP configuration information. config =

Re: [PyQt] [SIP]MD5 openssl

2011-07-01 Thread Jarosław Białas
I accidentally send below message only to David, repostion to groups. On 01.07.2011 19:57, David Boddie wrote: On Wed Jun 29 10:38:07 BST 2011, Jarosław Białas wrote: Recently I tried to use my c++ library in Python using SIP. In SIP configuration file I added some extra libraries like

[PyQt] [SIP]MD5 openssl

2011-06-29 Thread Jarosław Białas
Hello Recently I tried to use my c++ library in Python using SIP. In SIP configuration file I added some extra libraries like QtGui,fftw3 and ssl. Compilation and linking pass without any warnings or errors: g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o

Re: [PyQt] Passing image using SIP

2011-06-22 Thread Jarosław Białas
On 21.06.2011 20:02, David Boddie wrote: On Mon Jun 20 23:46:27 BST 2011, Jarosław Białas wrote: I wanted to create code fragment that will pass an object containg image or pointer to this object from Python to C++ function. I tried to create function: void loadImage(QImage* image); Then I

[PyQt] Passing image using SIP

2011-06-20 Thread Jarosław Białas
Hello, I wanted to create code fragment that will pass an object containg image or pointer to this object from Python to C++ function. I tried to create function: void loadImage(QImage* image); Then I created sip file, and after compiling and linking everything looks fine until I tried to