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

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 236 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 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!

    jsulmJ 1 Reply Last reply
    0
    • I iamnotsad

      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!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on 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
        • jsulmJ jsulm

          @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 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.

          jsulmJ 1 Reply Last reply
          0
          • I iamnotsad

            @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.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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
            0
            • jsulmJ jsulm

              @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 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

              • Login

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