Qt 6.12 LTS is out! See what's new in the release
blog
ScrollArea with a gridLayout inside not scrolling
-

code to populate it
filemanager FileManager; QStringList test = FileManager.openDir(":/image/palettes/"); int cc=0; for (QString &s : test) { QPushButton *button = new QPushButton; button->setObjectName("DeviceButton" + QString::number(cc++)); button->setMinimumHeight(45); button->setMaximumHeight(45); button->setCursor(Qt::PointingHandCursor); button->setStyleSheet("border-image: url("+s+") 0 0 0 0 stretch stretch;"); connect(button, &QPushButton::clicked, [=]() { sendBinary("paletteActive", cc); }); ui->gridLayoutPaletteContent->addWidget(button); }when running this on my android tablet i can't scroll by just touching, hold and drag on the screen, i have to do it on the scrollbar to the right!
how do i fix this?
-
Hi,
From the top of my head, I would say you need to check QGestureRecognizer.
-
Hi,
From the top of my head, I would say you need to check QGestureRecognizer.