Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QCombobox stop working after back navigation on android in Qt 6.4.2 C++
Forum Updated to NodeBB v4.3 + New Features

QCombobox stop working after back navigation on android in Qt 6.4.2 C++

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 479 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KaguroK Offline
    KaguroK Offline
    Kaguro
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      samuel898
      wrote on last edited by samuel898
      #2

      Hello, @Kaguro

      Can you please tell me is your query solved or not because i am also facing similar issue so if you got any answer or solution please share it.

      Best regards,
      samuel 898

      KaguroK 1 Reply Last reply
      1
      • KaguroK Offline
        KaguroK Offline
        Kaguro
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S samuel898

          Hello, @Kaguro

          Can you please tell me is your query solved or not because i am also facing similar issue so if you got any answer or solution please share it.

          Best regards,
          samuel 898

          KaguroK Offline
          KaguroK Offline
          Kaguro
          wrote on last edited by
          #4

          @samuel898 Hi!
          Finally the Qt Team started working on my ticket!
          So you can follow the process on this ticket if you want:
          https://bugreports.qt.io/browse/QTBUG-127495

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved