Skip to content
  • Dmitry Shachnev's avatar
    Remove sip.setapi calls, they are not needed with PyQt5 · 64eb2488
    Dmitry Shachnev authored and Halla Rempt's avatar Halla Rempt committed
    PyQt4 used to support two APIs for several Qt classes (QString,
    QVariant, etc):
    
    - API v2 (default for Python 3) automatically converted these Qt classes
      to native Python classes.
    
    - API v1 (default for Python 2) did not do any conversion, and exposed
      the Qt classes to Python instead.
    
    PyQt5 always uses API v2 for any version of Python. The only exception
    is QVariant, where it is possible to get a behavior similar to API v1,
    but v2 is still the default.
    64eb2488