Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cant Interact with QDialog in Qt 6.8.0 ARM64-v8a Android

Cant Interact with QDialog in Qt 6.8.0 ARM64-v8a Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 298 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    osos11
    wrote on 15 Oct 2024, 10:57 last edited by
    #1

    Hi,
    When I use Qt 6.8.0 I can't interact with anything in the dialog that opens. I think it's mishandling my touch. The dialog is a bit large and I've noticed that as objects multiply it touches a different place than where I touch.
    I'm not sure what exactly I need to do or how I can provide more information about this.
    Everything works fine with Qt 6.5.3.

    Host: Ubuntu 22.04 x64
    Kit: Qt 6.8.0 arm64-v8a
    Ndk: 27.1.12297006
    Java: openjdk version "17.0.12" 2024-07-16
    OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04)
    Build-tools: v34.0.0
    Build platform SDK: 34
    Make: Cmake (Default)

    Here is basic example, I cant click or push buttons:

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <QDialog>
    #include <QPushButton>
    #include <QVBoxLayout>
    
    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
        , ui(new Ui::MainWindow)
    {
        ui->setupUi(this);
    
        QPushButton *openDialogButton = new QPushButton("Open Dialog", this);
        connect(openDialogButton, &QPushButton::clicked, this, &MainWindow::openDialog);
    
        setCentralWidget(openDialogButton); // Ana pencereye butonu ekle
    }
    
    MainWindow::~MainWindow()
    {
        delete ui;
    }
    
    void MainWindow::openDialog()
    {
        QDialog dialog(this);
        dialog.setWindowTitle("Example Dialog");
    
        QPushButton *button1 = new QPushButton("Button 1", &dialog);
        QPushButton *button2 = new QPushButton("Button 2", &dialog);
    
        QVBoxLayout *layout = new QVBoxLayout(&dialog);
        layout->addWidget(button1);
        layout->addWidget(button2);
    
        connect(button1, &QPushButton::clicked, &dialog, &QDialog::accept);
        connect(button2, &QPushButton::clicked, &dialog, &QDialog::reject);
    
        dialog.setMinimumSize(250, 150);
        dialog.exec();
    }
    
    1 Reply Last reply
    0
    • A Offline
      A Offline
      Aaron Liao
      wrote on 17 Dec 2024, 10:26 last edited by
      #2

      Yeah, I've met the same problem, and I found that QPrintDialog also doesn't support interaction on Android.

      A 1 Reply Last reply 17 Dec 2024, 10:54
      0
      • A Aaron Liao
        17 Dec 2024, 10:26

        Yeah, I've met the same problem, and I found that QPrintDialog also doesn't support interaction on Android.

        A Offline
        A Offline
        Aaron Liao
        wrote on 17 Dec 2024, 10:54 last edited by
        #3

        @Aaron-Liao My android version is 12

        1 Reply Last reply
        0
        • O Offline
          O Offline
          osos11
          wrote on 19 Dec 2024, 14:35 last edited by
          #4

          @Aaron-Liao
          Check this: https://bugreports.qt.io/browse/QTBUG-130576

          I have created a bug report for this issue.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved