On 08/04/11 09:50, Hugo Parente Lima wrote:
On Thursday 07 April 2011 18:24:54 Myles Jackson wrote:
On 08/04/11 02:43, Hugo Parente Lima wrote:
On Wednesday 06 April 2011 20:46:39 Myles Jackson wrote:
Yeah Maya uses Python& the embedded language MEL. Autodesk have moved
towards Qt in a number of their products lines.
The advantage for us is that we can quickly put together custom apps
that run both inside& outside of Maya which is a big win.
Having said that I'd like to play around with Blender, I've heard many
good things.
Side note, seems like other people are having this same problem with the
QApplication instance.
Interestingly PySide.QtGui.qApp never gets initialised.
PySide.QtGui.qApp is set on QApplication constructor, but in Maya the
QApplication was not created by PySide, so qApp will be None.
I suspected as much. Really then the strange part is that PyQt /is/
somehow setting PyQt4.QtGui.qApp
It's probably dark magic and not essential, I just thought it was
interesting.
import PyQt4.QtGui
import PyQt4.QtCore
PyQt4.QtGui.qApp
# Result:<PyQt4.QtGui.QApplication object at 0x4a811e8> #
But try to compare PyQt4.QtGui.qApp with PyQt4.QtCore.QApplication.instance(),
they will be different PyObjects, also PyQt4.QtGui.qApp isn't None when
there's no QApplication instantiated.
Ahhh yep your right that explains quite a lot :-) , cheers.
I guess that in PyQt4 PyQt4.QtGui.qApp is a thin wrapper for QApplication that
checks if there's a QApplication instance and delegate all method calls for
it.
About the QApplication.instance() issue, better you file a bug report.
I filed a bug about this issue:
http://bugs.pyside.org/show_bug.cgi?id=816
:
:-D Nice- thanks.*//*Appreciate the help!
:
On 07/04/11 10:59, anatoly techtonik wrote:
On Tue, Apr 5, 2011 at 1:39 AM, Myles Jackson<[email protected]>
wrote:
Hey All!
I've started toying with the idea of converting some apps from PyQt
into PySide. So far so good (really appreciating the API
compatibility right now). However I've run into some weirdness and I
was wondering if anyone else has tried to use PySide inside maya or
any other Qt based applications?
Does Maya use Python? I know new Blender is heavily dependent on
Python 3k for UI and scene operations. I naively thought that 3D
packets are all alike, and should rely on their own rendering backend
for UI like OpenGL in Blender, so using Qt makes no sense. Blender
just gained more awesomeness in my eyes. =)
Unfortunately, I can not help you with Maya issues.
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside