I have a Qt::Popup flagged window (which does not have a title bar and close etc buttons) and would like to move by dragging\\clicking on the non-title bar area
Qt::Popup
if (event->buttons() && Qt::LeftButton) {
this condition is true for every mouse button
maybe you kept in mind this
if (event->buttons() & Qt::LeftButton) {