//QObject::connect(this->addButton,SIGNAL(clicked()),this,SLOT(buttonAdd())); void EntitieCustomeWidget::buttonAdd(){ if(this->core->getFocus()!=-1 && this->core->getFocusObj()){ Entitie* e = this->core->getEntitieAt(this->core->getFocus()); e->addIntField(0); this->curFocus = -1; } }