On Wed, Jun 1, 2016 at 10:40 AM Fredrik Averpil <fredrik.aver...@gmail.com> wrote:
> That was sent prematurely… > > I meant to ask if it was enough to set API to v2 only for QString and > QVariant, or if all of these should be set to v2: > > import sip > sip.setapi(u'QDate', 2) > sip.setapi(u'QDateTime', 2) > sip.setapi(u'QString', 2) > sip.setapi(u'QTextStream', 2) > sip.setapi(u'QTime', 2) > sip.setapi(u'QUrl', 2) > sip.setapi(u'QVariant', 2) > > // Fredrik > I've really only ever set the QString and QVariant ones, and have't hit the others ones, in practice. I have a less robust version of what your Qt helper is doing, at work, which just tries to resolve importing PyQt4 vs PySide. And if it ends up being PyQt4, I also *try* to set the sip api, but it can't always succeed. > > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWNCLViAB%3DrwXs0VY8rw9m6tme8xDt-ACH6NTXQ_O7Ws-w%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWNCLViAB%3DrwXs0VY8rw9m6tme8xDt-ACH6NTXQ_O7Ws-w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0fdj9tX4pe9waN6qg2dhRgfG8gT3kO_VuozLgsrH0nfw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.