Hello, I use these code to create a pop up widget and set it modal
QWidget* popUp = new QWidget(this, Qt::Popup);
popUp->setWindowModality(Qt::WindowModal);
QRect rect = QStyle::alignedRect(layoutDirection(), Qt::AlignBottom, QSize(width(), height()/3), geometry());
popUp->setGeometry(rect);
popUp->show();
however, after the pop up widget show, I click the place that outside the pop up widget but in the background widget, the pop up widget disappear.
So what should I do to set the pop up widget modal ?