<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Le 15/04/11 23:36, Juan José Gómez Romera a écrit :
<blockquote
cite="mid:BANLkTik1ieRaPwGSix_TGvJ-uCUp+zozOA@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote"><a moz-do-not-send="true"
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 moz-do-not-send="true"
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 class="h5">2011/4/15 Vincent Vande Vyvre <span
dir="ltr"><<a moz-do-not-send="true"
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 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 moz-do-not-send="true"
href="https://launchpad.net/oqapy"
target="_blank">Oqapy</a></div>
</font></div>
<br>
</div>
</div>
_______________________________________________<br>
PyQt mailing list <a moz-do-not-send="true"
href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a moz-do-not-send="true"
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt"
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
Thanks Juan José, good link, any of these functions are documented
in Q Assistant.<br>
<br>
... and I'm wrong when I say the result is too big :(<br>
<br>
<div class="moz-signature">-- <br>
Vincent V.V.<br>
<a href="https://launchpad.net/oqapy">Oqapy</a></div>
</body>
</html>