Tuesday, 9 August 2022

Qt Android blank window

Problem

I have a problem with Qt on Android in all my applications: after I close the QFileDialog (code below), I have a blank black window. I can't do anything in the application except close it.
Here is the code I use:

QFileDialog dialog(this, tr("Open Markdown File"));
dialog.setMimeTypeFilters({"text/markdown"});
dialog.setAcceptMode(QFileDialog::AcceptOpen);
if (dialog.exec() == QDialog::Accepted) {
    const QString file = dialog.selectedFiles().at(0);
    if (file == path || file.isEmpty()) return;
    openFile(file);
}

Informations

  • My Qt version is Qt 6.2.4
  • Device running on: Samsung Galaxy S10e
  • arm64-v8 build
  • JDK version 17
  • SDK-Version: 7.0
  • NDK-Version: 22.1.7171670
  • C++ version 17

Edit

Here a Screenshot what I see: What I see



from Qt Android blank window

No comments:

Post a Comment