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. Qt 5.3.1 Android QInputDialogs cause a crash on older devices
Forum Updated to NodeBB v4.3 + New Features

Qt 5.3.1 Android QInputDialogs cause a crash on older devices

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.0k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    janbur
    wrote on last edited by
    #1

    I'm using the QInputDialogs a lot, like the one below from the examples,
    but since version 5.3.1 they cause a crash,
    the dialog doesn't show up and after a while the app quits.
    This happens on my samsung galaxy tab3 with android 4.2

    The same input dialogs worked fine with version 5.2.1

    The problem doesn't occur on my Nexus 7 2013 with android 4.4,
    so it has sth to do with qt5.3.1 and older android versions,
    anyone an idea ?

    @ QStringList items;
    items << tr("Spring") << tr("Summer") << tr("Fall") << tr("Winter");
    bool ok;
    QString item = QInputDialog::getItem(this, tr("QInputDialog::getItem()"),
    tr("Season:"), items, 0, false, &ok);
    if (ok && !item.isEmpty())
    itemLabel->setText(item);
    @

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should take a look at the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not you should consider opening a new report providing a minimal compilable example

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        janbur
        wrote on last edited by
        #3

        I made a new small project, with only the qinputdialogs,
        and it shows the dialogs as expected on both devices.

        So I think the problem lies in the rest of the coding of my large app,
        the inputdialog somehow gets pushed away on the slower tab3,
        while the faster nexus7 manages to show it.

        I'll have to dig deeper.

        Note the 5.3.1. compiled large app runs faster than the 5.2.1 version,

        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