On Friday 26 August 2011 18:29:57 Gordon Wrigley wrote:
> Hi
> 
> As an exercise in learning Qt and PySide I'm attempting to port this
> example:
> http://labs.qt.nokia.com/2008/06/27/accelerate-your-widgets-with-opengl/
> to Python
> 
> I mostly have it going but there are a few little issues outstanding.

I didn't run your code yet, but I can answer few question for while:

> 1: The file dialog created by clicking "load model" is very broken.
> 2: I can't figure out where to import QFutureWatcher from so background
> loading doesn't work.

QFutureWatcher depends on QFuture, QFuture is heavily based on C++ templates, 
so Python bindings for it will have many limitations comparing to the C++ 
version. in other words: PySide doesn't support QFuture* classes.

> 3: There's something odd with the mouse interaction and animation,
> generally after a mouse operation the animation stalls until the next
> mouse operation. 4: The line "statistics.layout().setMargin(20)" errors
> with "AttributeError: 'PySide.QtGui.QVBoxLayout' object has no attribute
> 'setMargin'"

setMargin is a deprecated function, use setContentsMargin instead, PySide 
doesn't support functions deprecated before Qt 4.5... or 4.4... anyway, try to 
avoid the use of deprecated functions.
 
> I have attached what I have so far.
> 
> I would really appreciate it if someone could shed any light on these
> issues.
> 
> G

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to