hello, I create a pop up widget , and set Window Modality as Modal as belows:
the popup widget can pop up. But when I click the background widget, it disappear.QWidget* popUp = new QWidget(this, Qt::Popup);
QRect rect = QStyle::alignedRect(layoutDirection(), Qt::AlignBottom, QSize(width(), height()/3), geometry());
If I forget something , or I code in wrong way, please tell me.
Any suggestion will be appreciate.