Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can not catch none client area mouse event in linux platform
ccyes last edited by
I want to catch none client area mouse event in a widget derived from QWidget. But it does not work.
The code is :
class Widget :public QWidget
bool DocWidget::event(QEvent *e)
if(e->type() == QEvent::NonClientAreaMouseButtonRelease)
std::cout<<"non client area mouse btn released"<<std::endl;
if(e->type() == QEvent::NonClientAreaMouseButtonPress)
std::cout<<"non client area mouse btn pressed"<<std::endl;
Hi and welcome to devnet,
Are you in this case ?