[PyQt] Overloads in SIP
phil at riverbankcomputing.com
Tue Sep 5 09:33:32 BST 2017
On 4 Sep 2017, at 10:44 pm, Shaheed Haque <srhaque at theiet.org> wrote:
> 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()
You either need to comment out the first overload or give one of them a different Python name.
More information about the PyQt