widget.h
virtual bool event(QEvent *event);
widget.cpp
bool Widget::event(QEvent *event) { if (event->type() == QEvent::NonClientAreaMouseButtonDblClick) qDebug() << "title double clicked event"; return QWidget::event(event); }