Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.14.2, 5.15.2
-
None
-
-
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
For Gerrit Dashboard: QTBUG-93366 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
375273,2 | Add style hint for preventing spin box selection on up/down | dev | qt/qtbase | Status: MERGED | +2 | 0 |