<br><div class="gmail_quote"><a href="http://doc.qt.nokia.com/4.7-snapshot/qtcore-qmath-h.html#qPow" target="_blank">http://doc.qt.nokia.com/4.7-snapshot/qtcore-qmath-h.html#qPow</a><br><br>the name its clear<br><br>i think is not implemented in pyqt, or it doesnt show in documentation:<br>
<a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtcore.html" target="_blank">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtcore.html</a><br><br><div class="gmail_quote"><div><div></div>
<div class="h5">2011/4/15 Vincent Vande Vyvre <span dir="ltr"><<a href="mailto:vincent.vandevyvre@swing.be" target="_blank">vincent.vandevyvre@swing.be</a>></span><br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
Trying svgViewer.py example I have this error:<br>
<br>
Traceback (most recent call last):<br>
File "svgviewer2.py", line 236, in wheelEvent<br>
factor = QtCore.qPow(1.2, event.delta() / 240.0)<br>
AttributeError: 'module' object has no attribute 'qPow'<br>
<br>
qPow() is undocumented, anymore in Q Assistant.<br>
<br>
I've modified wheelEvent() with<br>
<br>
factor = 1 + 0.1 * event.delta() / 120.0<br>
<br>
and that's work, but I am curious, what makes qPow() ?<br>
<br>
Power ?, not possible, result is too big.<br>
<br>
Cheers<br><font color="#888888">
<div>-- <br>
Vincent V.V.<br>
<a href="https://launchpad.net/oqapy" target="_blank">Oqapy</a></div>
</font></div>
<br></div></div>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br>
</div><br>