[PyQt] std::string sip Python3

Phil Thompson phil at riverbankcomputing.com
Wed Mar 15 19:42:13 GMT 2017


On 15 Mar 2017, at 3:03 pm, Jakob Simon-Gaarde <jakobsg at gmail.com> wrote:
> 
> How do I use std::string in my .sip files?
> 
> My sip file:
> 
> class CPPTheme /External/;
> 
> class LMCTheme {
> public:
>     LMCTheme(CPPTheme* config=0);    
>     bool LoadTheme(const std::string &fileName);
> };
> 
> 
> I get the following error:
> sip: std::string is undefined

You need to provide a definition.

Phil


More information about the PyQt mailing list