QCombobox stop working after back navigation on android in Qt 6.4.2 C++
-
Hi Guys!
I have some porblem with QComboBox on android. When i open the drop down QListView menu of the QComboBox and I hit the back on the navigation bar the QComboBox correctly closed. But not working anymore... i red about that i just set the NoFocus policy, but i tried in this way and not working:#include <QApplication> #include <QComboBox> #include <QWidget> #include <QVBoxLayout> #include <QKeyEvent> class MyWidget : public QWidget { Q_OBJECT public: MyWidget() { QVBoxLayout *layout = new QVBoxLayout(this); comboBox = new QComboBox(this); for (int i = 0; i < 10; ++i) { comboBox->addItem(QString("Item %1").arg(i)); } comboBox->setFocusPolicy(Qt::NoFocus); layout->addWidget(comboBox); setLayout(layout); } private: QComboBox *comboBox; }; int main(int argc, char *argv[]) { QApplication app(argc, argv); MyWidget w; w.show(); return app.exec(); } #include "main.moc"
Any idea fot the solution? Thank you for your help!
-
Hello @samuel898
Unfortunately it was not solved :( no one wrote a comment, there is no solution on stack overflow... I already asked the question on Qt Bug Report, but they didn't respond to it even there. :(
https://bugreports.qt.io/browse/QTBUG-127495
https://stackoverflow.com/questions/78792793/qcombobox-stops-working-after-tap-back-navigation-on-android-in-qt-6-4-2-c
I will write it if i have a solution about this.