Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93366

QSpinBox up/down arrow selects texts and show text menu

    XMLWordPrintable

Details

    • Android
    • e0b6b27d397faac924751be8da2c781286c3f8d7 (qt/qtbase/dev)

    Description

      Simply execute this program showing a QSpinBox:

       
      #include <QMainWindow>
      #include <QSpinBox>
      #include <QVBoxLayout>
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QMainWindow w;
          w.setCentralWidget( new QWidget() );
          w.centralWidget()->setLayout( new QVBoxLayout() );
          w.centralWidget()->layout()->addWidget( new QSpinBox() );
      
          w.show();
          return a.exec();
      }
      

      When you run it under Android, after you press the up or down QSpinBox arrow, the whole QSpinBox edit field text gets selected and Edit menu is shown (proposing to Copy/Paste/Select all...). This is really annoying.

      See attached video.

      Any workaround (at QApplication level, as I have many many QSpinBox in my app) would be appreciated.

      Attachments

        1. spinbox.mp4
          709 kB
          Jean Porcherot
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes