[PyQt] Fwd: What is QtCore.qPow() ?
Juan José Gómez Romera
jjgomera at gmail.com
Fri Apr 15 22:36:47 BST 2011
http://doc.qt.nokia.com/4.7-snapshot/qtcore-qmath-h.html#qPow
the name its clear
i think is not implemented in pyqt, or it doesnt show in documentation:
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtcore.html
2011/4/15 Vincent Vande Vyvre <vincent.vandevyvre at swing.be>
> Hi,
>
> Trying svgViewer.py example I have this error:
>
> Traceback (most recent call last):
> File "svgviewer2.py", line 236, in wheelEvent
> factor = QtCore.qPow(1.2, event.delta() / 240.0)
> AttributeError: 'module' object has no attribute 'qPow'
>
> qPow() is undocumented, anymore in Q Assistant.
>
> I've modified wheelEvent() with
>
> factor = 1 + 0.1 * event.delta() / 120.0
>
> and that's work, but I am curious, what makes qPow() ?
>
> Power ?, not possible, result is too big.
>
> Cheers
> --
> Vincent V.V.
> Oqapy <https://launchpad.net/oqapy>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110415/3a750d39/attachment.html>
More information about the PyQt
mailing list