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. Qt5.12.2 QMessageBox can't be showed on IOS18.2
QtWS25 Last Chance

Qt5.12.2 QMessageBox can't be showed on IOS18.2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 230 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.
  • I Offline
    I Offline
    iamnotsad
    wrote on 14 Mar 2025, 09:42 last edited by
    #1

    The following code can work correctly on IOS16.7:
    void DIAG(QString text)
    {
    QMessageBox box;
    box.setIcon(QMessageBox::NoIcon);
    box.setText(text);
    box.addButton(QObject::tr("OK"), QMessageBox::AcceptRole);
    box.exec();
    }

    But can't work on on IOS18.2!
    For example, if I call DIAG function under QPushButton clicked slot, the messagebox can't show and will block the current UI(you can't click anything).
    Now I let the APP goto background, and then reopen it, then I can see the messagebox(but still you can't click anything).

    How to fix this issue on IOS18.2?
    Thanks!

    J 1 Reply Last reply 14 Mar 2025, 09:59
    0
    • I iamnotsad
      14 Mar 2025, 09:42

      The following code can work correctly on IOS16.7:
      void DIAG(QString text)
      {
      QMessageBox box;
      box.setIcon(QMessageBox::NoIcon);
      box.setText(text);
      box.addButton(QObject::tr("OK"), QMessageBox::AcceptRole);
      box.exec();
      }

      But can't work on on IOS18.2!
      For example, if I call DIAG function under QPushButton clicked slot, the messagebox can't show and will block the current UI(you can't click anything).
      Now I let the APP goto background, and then reopen it, then I can see the messagebox(but still you can't click anything).

      How to fix this issue on IOS18.2?
      Thanks!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Mar 2025, 09:59 last edited by
      #2

      @iamnotsad You should consider switching to QML for mobile platforms. There is not much happening in QtWidgets and they are more for desktop systems.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      I 1 Reply Last reply 17 Mar 2025, 00:37
      0
      • A Online
        A Online
        Axel Spoerl
        Moderators
        wrote on 15 Mar 2025, 16:06 last edited by
        #3

        Please also move to at least Qt 6.5.
        5.12 isn't supported anymore.

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        1
        • J jsulm
          14 Mar 2025, 09:59

          @iamnotsad You should consider switching to QML for mobile platforms. There is not much happening in QtWidgets and they are more for desktop systems.

          I Offline
          I Offline
          iamnotsad
          wrote on 17 Mar 2025, 00:37 last edited by
          #4

          @jsulm Thanks for your reply!
          I kown switch to QML is the best choice. But my raw APP
          was based on QWidgets, it will take to long time to switch to QML...
          I want to find a workround for this issue firstly.
          And next step,we may consider switching to QML when we have resources.

          J 1 Reply Last reply 17 Mar 2025, 06:17
          0
          • I iamnotsad
            17 Mar 2025, 00:37

            @jsulm Thanks for your reply!
            I kown switch to QML is the best choice. But my raw APP
            was based on QWidgets, it will take to long time to switch to QML...
            I want to find a workround for this issue firstly.
            And next step,we may consider switching to QML when we have resources.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 17 Mar 2025, 06:17 last edited by
            #5

            @iamnotsad Then you should at least use a more recent version of Qt - latest Qt5 or even better Qt6. Qt 5.12 isn't supported anymore for long time already.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            I 1 Reply Last reply 17 Mar 2025, 10:58
            0
            • J jsulm
              17 Mar 2025, 06:17

              @iamnotsad Then you should at least use a more recent version of Qt - latest Qt5 or even better Qt6. Qt 5.12 isn't supported anymore for long time already.

              I Offline
              I Offline
              iamnotsad
              wrote on 17 Mar 2025, 10:58 last edited by
              #6

              @jsulm Yes,I am preparing to upgrade my APP to use Qt6.8. But I met the issue: https://forum.qt.io/topic/161366/qt6-8-2-qwidget-can-t-show-on-ios18-2

              1 Reply Last reply
              0

              2/6

              14 Mar 2025, 09:59

              topic:navigator.unread, 4
              • Login

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