Plot items are no QObjects - so the answer is you can't. Real men don't need GUIs to write code.

Uwe