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

QCheckBox and QSpinBox are too small under Android

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.2
    • None
    • Android

      Clicking QCheckBox and QSpinBox +/- buttons under Android device is impossible unless micro-fingers. Those controls are really too small. Using `QApplication::setAttribute(Qt::AA_Use96Dpi)` make them a bit bigger but they remain definitely too small.

       

      #include <QApplication>
      #include <QMainWindow>
      #include <QVBoxLayout>
      #include <QSpinBox>
      #include <QCheckBox>
      int main( int argc, char* argv[] )
      {
          // this makes spinbox buttons bigger, but it remains too small
          //QApplication::setAttribute(Qt::AA_Use96Dpi);
          QApplication app(argc, argv);
          QMainWindow dlg;
          QWidget centralWidget;
          centralWidget.setLayout( new QVBoxLayout() );
          QSpinBox* spinbox = new QSpinBox();
          spinbox->setMinimum( 0 );
          spinbox->setMaximum( 10 );
          centralWidget.layout()->addWidget( spinbox );
          centralWidget.layout()->addWidget( new QCheckBox() );
          dlg.resize( 200, 200 );
          dlg.setCentralWidget(&centralWidget);
          dlg.show();
          return app.exec();
      }
      

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes