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. QMessageBox hangs the application on IOS 11.4.1
Qt 6.11 is out! See what's new in the release blog

QMessageBox hangs the application on IOS 11.4.1

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.7k Views 2 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.
  • T Offline
    T Offline
    TheCrowKaka
    wrote on last edited by
    #1

    Hello

    I am developing a multi OS application. The same source code is deployed on IOS, Windows, Android.

    For many confirmations, I have used QMessageBox like this.

        QMessageBox msg;
        msg.setText(tr("Confirm Application Close"));
        msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
        msg.setDefaultButton(QMessageBox::No);
        msg.setParent(this);
        msg.setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Dialog);
        msg.setIcon(QMessageBox::Question);
        if(msg.exec()==QMessageBox::No)
            return;
    // Proceed with the application closure here.
    

    This is just one example. There are many places in the application where I have used such QMessageBox to get user response.

    On IOS, the latest version 11.4.1, I see that the QMessageBox shows but when i want to press the buttons, nothing happens. The application just hangs.
    On the earlier version of IOS, this was working. I already have an App on the play store and this works.
    This also works well on all other OS.
    Does anyone have some suggestions for a solution?

    A Qt Enthusiastic...

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

      Hi,

      Did you change the version of Qt used ?
      What version is it ?
      Does it also happen if you do that from a default application ?

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

      T 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you change the version of Qt used ?
        What version is it ?
        Does it also happen if you do that from a default application ?

        T Offline
        T Offline
        TheCrowKaka
        wrote on last edited by
        #3

        @SGaist
        No. I have not changed the Qt version. it is 5.10.1. however, I had to change the IOS version as it forces upgrading to newer versions and also corresponding change in XCode version to the latest.

        The messagebox works the first or second time. WHen this problem happens, first thing that happens is that even after pressing the button where the message box is programmed, it takes longer than usual time for the message box to popup. I need to touch the screen once or twice and then when the messagebox popups, it hangs. I have to close the App completely.
        Is that something to do with Queueing of commands or ?

        A Qt Enthusiastic...

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Did you change the version of Qt used ?
          What version is it ?
          Does it also happen if you do that from a default application ?

          T Offline
          T Offline
          TheCrowKaka
          wrote on last edited by
          #4

          @SGaist
          And I did not understand what you meant by a default application. Do you mean to say just a blank application with just the messagebox? If that is what you meant, I have not tried that. I will try that and let you know what happens.

          A Qt Enthusiastic...

          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