On Wednesday 10 November 2010 07:02:02 Alberto Soto wrote:
> Hi,
> 
> I am currently using python (2.5) and PySide (0.4.2) to script for a Qt run
> application. Using the QtGui.QApplication.allWidgets () I can get access
> to all of the application widgets and can then apply changes to the Qt
> Interface. But instead of getting back a QMainWindow or other widgets, I
> get a list of QWidgets. It seems that all personal subclassed widgets of,
> for example, QMainWindow, are "seen" by PySide/Python as being QWidgets. I
> managed to identify the main window by it's name (objectName) and confirm
> this by modifying its properties. But I do not have access to its
> QMainWindow methods because Python insists it is an instance of QWidget.
> 
> Could this be because of a mistake in my code or a problem with the
> install? If not, is there anyway of "casting" or changing the class of the
> main window instance to an actual QMainWindow (I can't call class methods
> because they confirm that a QMainClass is passed and so don't accept my
> "QWidget").

It's a bug, could you file a bug report?
 
> Any help/Advice would be greatly appreciated.
> Sincerely,
> Alberto

-- 
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.openbossa.org/listinfo/pyside

Reply via email to