QWidget标题栏双击事件

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);

}

 

你可能感兴趣的:(widget)