Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7.3, 6.8.3, 6.9.1
-
None
-
Android multiple versions
Amazon Fire Max 11 and some tests on Galaxy Tab A8
-
-
2025wk26s2QtforAndroid
Description
Tested versions 6.6.3 6.7.3 6.8.3 6.9.0 6.9.1
Cannot press buttons or input text on Android Qt versions 6.7.3 and 6.8.3 and 6.9.0
This code works for everything windows and ubuntu but is broken in Android Qt versions 6.7.3 and 6.8.3 and 6.9.0
Works in android 6.6.3 and android 6.9.1
Run the below code on android. You cannot press the buttons or affect the dialog in any way on the broken versions of Qt... at least it finally got fixed in 6.9.1
#include <QGuiApplication>
#include <QApplication>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
int main(int argc, char *argv[])
{
QCoreApplication::setOrganizationName("JustATest");
QCoreApplication::setApplicationName("GuiTest");
QApplication app(argc, argv);
QDialog dialog;
dialog.setWindowTitle("My Dialog");
QLabel *label = new QLabel("This is a simple dialog.");
QPushButton *okButton = new QPushButton("OK");
QPushButton *cancelButton = new QPushButton("Cancel");
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(label);
layout->addWidget(okButton);
layout->addWidget(cancelButton);
dialog.setLayout(layout);
QObject::connect(okButton, &QPushButton::clicked, &dialog, &QDialog::accept);
QObject::connect(cancelButton, &QPushButton::clicked, &dialog, &QDialog::reject);
if (dialog.exec() == QDialog::Accepted)
{ qWarning() << "Dialog was accepted"; } else
}
Attachments
Issue Links
- relates to
-
QTBUG-128794 QLineEdit in Android - no text visual
-
- Open
-