Is it possible to prevent hide popup in QComboBox?
Unsolved
General and Desktop
-
Hi,
I would like to prevent hide popup in my subclass of QComboBox.
I tried:
view()->viewport()->installEventFilter(this);
and in bool myComboBox::eventFilter(QObject *object, QEvent *event):
else if(event->type() == QEvent::Hide && dialog->isVisible()) { return true; }
but it doesn't works.
And one more information: I would like only prevent hide popup when dialog is visible, so something like above.
-
Hi
Try overwrite
https://doc.qt.io/qt-5/qcombobox.html#hidePopup
and see if that makes it controllable.