On Sunday 14 August 2011 01:05:25 Grissiom wrote:
> Hi all,
> 
> Due to template problem. I want to get a working pysideqwt binding for
> qwt-5.x at first. It's amazing that the build system only need little
> change for the lastest Qwt(5.2.2).
> 
> One thing is that the QwtPlotSvgItem in qwt is optional and disabled
> by default. Is there any way to define the object conditionally? I
> know there is "if ... endif" in Cmake. Could we do that in xml? ;)

If the object wasn't found by the C++ parser it will not be generated.

Optional classes in libraries are surrounded by a #ifdef, so to avoid generate 
these classes you just need to add a #define into your global.h to set the 
constant needed to make the C++ parser skip the class.
 
> P.S. Now the pysideqwt is usable and I'm fixing the examples. Repo URL:
> 
> https://github.com/grissiom/pysideqwt/tree/qwt-5.x

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to