[PyQt] Missing QMap<double, T> binding

Phil Thompson phil at riverbankcomputing.com
Mon Jun 3 09:20:58 BST 2019


On 03/06/2019 09:07, Giuseppe Corbelli wrote:
> On 5/31/19 4:24 PM, Phil Thompson wrote:
>> On 31/05/2019 14:32, Giuseppe Corbelli wrote:
>>> Hi all
>>> as far as I understand the whole system the templated QMap 
>>> %MappedType
>>> declaration in qpycore_qmap.sip does not work with double type as key
>>> (for all POD types?).
>>> 
>>> I am attaching a QMap<double, T> partial specialization that may be
>>> fit for inclusion sooner or later.
>> 
>> There is no intention to support all types - only those actually 
>> needed by PyQt.
> 
> Well, that would be an impossible task.
> To be crystal clear: you don't see in adding & sharing such template
> so I should use it as a part of my project, correct?

Yes. Even if an implementation was added to PyQt at a later date, your 
project would still use your version.

Phil


More information about the PyQt mailing list