-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.2
-
None
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(¢ralWidget); dlg.show(); return app.exec(); }