[Php-qt-users] custom slots
Status: Beta
Brought to you by:
tm243
From: Thomas M. <tm...@ip...> - 2006-05-08 23:33:00
|
Hi, We can define our own slots, at the moment with integer or without any arguments. See this modification of the 6th tutorial: class LCDRange extends QWidget { var $lcd; var $slider; var $layout; var $slots = array("test(int)", "mySlot(int)"); function __construct(){ ... function mySlot($id){ echo "mySlot ".$id."\n"; $this->lcd->display($id); } function test($id){ } ... Available in the subversion repository. I would be happy if someone could test it. -- Thomas |