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. [SOLVED]Android: Modal dialogs issue
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Android: Modal dialogs issue

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 3 Posters 3.4k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    When I call any modal dialog it doesn’t appear in full screen mode until minimize the application to the tray then open it once again although I forced it to be shown in full screen by:

    @ DialogAbout dlg;
    #if defined(Q_OS_ANDROID)
    dlg.showFullScreen();
    #endif
    dlg.exec();@

    How can I fix this issue?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      I tried to use the following but nothing changed!

      [code] DialogAbout dlg;
      #if defined(Q_OS_ANDROID)
      dlg.setMinimumSize(0, 0);
      dlg.setMaximumSize(16777215, 16777215);
      dlg.setWindowState(Qt::WindowFullScreen);
      dlg.setWindowModality(Qt::ApplicationModal);
      dlg.showFullScreen();
      #endif
      dlg.exec();[/code]

      Any way, I took a screencast for clarification the problem http://mbnoimi.me/tmp/modal_00001.webm

      The repository of the project is: https://github.com/mbnoimi/SimpleInvoice

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ecloud
        wrote on last edited by
        #3

        Did you file a bug report yet?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbnoimi
          wrote on last edited by
          #4

          I filed a bug report in: https://bugreports.qt-project.org/browse/QTBUG-33294

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbnoimi
            wrote on last edited by
            #5

            As a temporarily solution I converted all modal dialog to StackedWidgets to make them available because most of them impossible to deal with (ex. QMessageBox).

            Do you've another idea to fix this bug?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              landrew
              wrote on last edited by
              #6

              I have a similar problem, and may switch to stacked widgets as well. Do you have a simple example you can upload to the bug report?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mbnoimi
                wrote on last edited by
                #7

                [quote author="landrew" date="1382456641"]I have a similar problem, and may switch to stacked widgets as well. Do you have a simple example you can upload to the bug report?[/quote]

                You can get it from https://bugreports.qt-project.org/secure/attachment/34611/TestAndroid.tar.gz

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mbnoimi
                  wrote on last edited by
                  #8

                  This issue has been solved under Qt 5.2.1 + Qt Creator 3.1.0.
                  https://bugreports.qt-project.org/browse/QTBUG-33294

                  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