Hey there,
Here is a bit advanced question,
I'm using the following routine to enable my QtScript to new a QLineEdit:
...
QScriptValue lineEditClass = engine.scriptValueFromQMetaObject<QLineEdit>();
engine.globalObject().setProperty("QLineEdit", lineEditClass);
Q_SCRIPT_DECLARE_QMETAOBJECT(QLineEdit, QWidget*)
...
QScriptValue lineEditClass = engine.scriptValueFromQMetaObject<QLineEdit>();
engine.globalObject().setProperty("QLineEdit", lineEditClass);
To copy to clipboard, switch view to plain text mode
Now I want to make one of this QLineEdit's member (not a slot, not a property) available in the script:
example: "void QLineEdit::deselect ()"
and in the script
lineEdit.deselect();
lineEdit = new QLineEdit;
lineEdit.deselect();
To copy to clipboard, switch view to plain text mode
What's the most simple way to achieve that.
Thanks.
Bookmarks