t-artistik / qtscriptgenerator

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

Why aren't the public slots available from the script? #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've been trying this out, and noticed that the public
slots cannot be called from the script when using the bindings?

For example; QWidget.close(); gives an error? Why is this?

Original issue reported on code.google.com by fontanao...@gmail.com on 14 Oct 2008 at 2:47

GoogleCodeExporter commented 8 years ago
The slots are still handled by the dynamic QObject binding that QtScript 
provides,
not the generated bindings. That is, the slots are properties of instances, not 
of
the prototype objects.
Thus, you should find that e.g.

w = new QWidget; w.close();

works.

Original comment by kentm...@gmail.com on 5 Nov 2008 at 1:18