Все разобрался... Переопределил
bool MyClass ::eventFilter(QObject *obj, QEvent *event)
{
if (obj == play->videoWidget()) {
if (event->type() == QEvent::KeyPress) {
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if ((keyEvent->key () == Qt::Key_1))
{
qDebug() << "sfsesef - - - - " << keyEvent->key();
play->videoWidget()->setFullScreen(false);
fuul_sc_pl = false;
}
// if ((keyEvent->key () == Qt::Key_1)&&(fuul_sc_pl==false))
// {
// qDebug() << "sfsesef - - - - " << keyEvent->key();
// play->videoWidget()->setFullScreen(true);
// fuul_sc_pl = true;
// }
return true;
} else {
return false;
}
} else {
// pass the event on to the parent class
return DemAstPro::eventFilter(obj, event);
}
}