public function createSel($selName, $cursor) { $sel = new QLabel($this->container); $sel->setCursor($cursor); $sel->objectName = "___pq_creator_sizectrl_{$selName}_"; $sel->resize($this->size, $this->size); $sel->styleSheet = $this->styleSheet; if (strpos($this->selobj->disabledSels, $selName) === false) { $sel->enableResize = true; } $sel->setPHPEventListener($this, eventListener); $sel->addPHPEventListenerType(QEvent::MouseButtonPress); $sel->addPHPEventListenerType(QEvent::MouseButtonRelease); $sel->addPHPEventListenerType(QEvent::MouseMove); $sel->show(); return $sel; }