t-artistik / qtscriptgenerator

Automatically exported from code.google.com/p/qtscriptgenerator
0 stars 0 forks source link

__proto__ of widgets loaded with QUiLoader #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
__proto__ or prototype of widgets loaded with QUiLoader are not accessible

trying to print a prototype of any of loaded .ui files
prints the following info:
print(object) - QFrame
print(object.prototype) - undefined
print(object.__proto__) - TypeError:QFrame.toString():this object is not a
QFrame

This is printed if a loaded widget is a QFrame.
As a result Event handlers cannot be defined.

Original issue reported on code.google.com by g1099511...@gmail.com on 27 Mar 2010 at 8:15