Hey there,

Here is a bit advanced question,

I'm using the following routine to enable my QtScript to new a QLineEdit:

Qt Code:
  1. Q_SCRIPT_DECLARE_QMETAOBJECT(QLineEdit, QWidget*)
  2.  
  3. ...
  4.  
  5. QScriptValue lineEditClass = engine.scriptValueFromQMetaObject<QLineEdit>();
  6. 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

Qt Code:
  1. lineEdit = new QLineEdit;
  2. lineEdit.deselect();
To copy to clipboard, switch view to plain text mode 

What's the most simple way to achieve that.

Thanks.