widget.h
1
|
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); }
http://www.cnblogs.com/bugchecker/p/4583041.html