[PyQt] Overloads in SIP
Shaheed Haque
srhaque at theiet.org
Tue Sep 5 10:39:59 BST 2017
On 5 September 2017 at 09:33, Phil Thompson <phil at riverbankcomputing.com> wrote:
> On 4 Sep 2017, at 10:44 pm, Shaheed Haque <srhaque at theiet.org> wrote:
>>
>> Hi,
>>
>> For these two overloads
>>
>> int toInt() const;
>> int toInt(bool *ok) const;
>>
>> why does SIP complain:
>>
>> sip: tmp/KHtml/dom/dom_string.sip:68: ::DOM::DOMString::toInt() has
>> overloaded functions with the same Python signature
>>
>> That seems wrong? Insights welcome.
>
> By default it is assumed that 'ok' is being used to return a value so the *Python* signature is...
>
> (int, bool) toInt()
I see, thanks.
> You either need to comment out the first overload or give one of them a different Python name.
>
> Phil
More information about the PyQt
mailing list