Originally Posted by
windkracht8
Anyone any idea how this is possible?
You don't invoke the base class implementation.
Try:
bool frmMain
::event(QEvent* event
) {
if(event
->type
() == QEvent::User){ bC* eTemp = (bC*)event;
iTemp = eTemp->rij();
iTemp2 = eTemp->col();
knopGeklikt(iTemp,iTemp2);
event->accept();
return true;
}
}
bool frmMain::event(QEvent* event)
{
if(event->type() == QEvent::User){
bC* eTemp = (bC*)event;
iTemp = eTemp->rij();
iTemp2 = eTemp->col();
knopGeklikt(iTemp,iTemp2);
event->accept();
return true;
}
return QWidget::event( event );
}
To copy to clipboard, switch view to plain text mode
or better:
bool frmMain
::customEvent(QEvent* event
) {
if(event
->type
() == QEvent::User){ bC* eTemp = (bC*)event;
iTemp = eTemp->rij();
iTemp2 = eTemp->col();
knopGeklikt(iTemp,iTemp2);
event->accept();
return true;
}
return QWidget::customEvent( event
);
}
bool frmMain::customEvent(QEvent* event)
{
if(event->type() == QEvent::User){
bC* eTemp = (bC*)event;
iTemp = eTemp->rij();
iTemp2 = eTemp->col();
knopGeklikt(iTemp,iTemp2);
event->accept();
return true;
}
return QWidget::customEvent( event );
}
To copy to clipboard, switch view to plain text mode
Bookmarks