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.1 QWidget application on Android 4 - Refresh problems
Forum Updated to NodeBB v4.3 + New Features

Qt5.1 QWidget application on Android 4 - Refresh problems

Scheduled Pinned Locked Moved Mobile and Embedded
18 Posts 7 Posters 12.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.
  • F Offline
    F Offline
    flaviomarcio
    wrote on last edited by
    #3

    is a bug so I reported it a while atraz still in version 5.1.0 rc2.
    Stay again amazed at the lancemrnto qt5.1.1 still contain this bug.

    as far as I know has not as tidy. joke but it seems to have a really silly bug in the GUI. On the other hand qtquick seems to work well.

    The bogdan, was better only in the project.

    But I cheer for the solution.

    Flavio Portela

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nomegenerico
      wrote on last edited by
      #4

      [quote author="Flavio Portela" date="1374019471"]is a bug so I reported it a while atraz still in version 5.1.0 rc2.
      ....
      [/quote]

      Thank you Flavio, does exist a bug report for this issue where I can add my entry?

      BTW, I do some attept to workaround the issue, but with QWidget seems that there are way more than this single problem!

      My simple QWidget application has a QMainWindows, some QAction in the menu and toolbar, a central widget, and you can open a simple application configuration dialog. Sometime I open a QMessageBox and a QProgressDialog. This is all I do, but for now there isn'y a widget without some issue.
      The QMainWindows does not resize to the availableGeometry,
      QMessageBox yes, but there is the refresh problem. The same for the QProgressDialog: I change It's aspect without hide or destroy it, such as
      progressDialog->setValue(0);
      progressDialog->setCancelButtonText(QString());
      progressDialog->setMinimum(0);
      progressDialog->setMaximum(0);
      // Added for Android test:
      progressDialog->repaint();
      progressDialog->update();

      But the progressDialog remain the same.

      Knowing the fact that Android have not a "standard" windows manager I tryied also some WindowsFlags on all the type of widget mentioned above, and different combinations. For example, one test for the QMainWindow:

          QMainWindow(NULL, Qt::Dialog |
                            Qt::BypassWindowManagerHint |
                            Qt::X11BypassWindowManagerHint |
                            //Qt::WindowStaysOnTopHint |
                            Qt::FramelessWindowHint |
                            Qt::CustomizeWindowHint),
      

      And outside, after construction, to resize it:
      const QRect rectd = QApplication::desktop()->availableGeometry();
      mainWindows->setGeometry(rectd);
      mainWindows->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
      mainWindows->setMinimumSize(rectd.size());
      mainWindows->resize(rectd.size());

      And obviously I try to call
      mywidget->update();
      mywidget->rerpaint();
      at several point but no luck.

      The only think that worked is the resize to QApplication::desktop()->availableGeometry();
      for the QMessageBox...but only if the messagebox contain a QButton. :-(

      QtQuick is not an option: the application is QWidget, rewrite the GUI in QtQuick is not only a waste of time but, for me, is unwanted as well.
      I prefer C++, and I prefer my code rely only on what is guarantee to be under the LGPL.

      I really hope all this hype about QtQuick, and also the weird bugs leaved in QWidget are not a conseguence of a commercial strategy.

      Hope it is only a conseguence of a lack of time due to the huge amount of work to do.

      But those bugs are blocking, so, for now, I must defer the Android port indefinitely.

      If somone have some news or hint/workarond please let me know.

      Best regards

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flaviomarcio
        wrote on last edited by
        #5

        If it helps you, you can use the Qt5.1 QtNecessitas4.8.2 out instead.
        the version estave stable enough to provide security for me. I launch my product within 2 years.
        you can download at:

        http://files.kde.org/necessitas/installer/release/

        Flavio Portela

        1 Reply Last reply
        0
        • F Offline
          F Offline
          flaviomarcio
          wrote on last edited by
          #6

          waiting for the version with Qt5.2, I believe it will take time to leave, but will have a fix for these bugs fools.

          And now I know why launched as a preview, not able to stabilize.

          I am sad because Qt with innovations in favor of technologies is always the last to get in the race of new platatormas. When this occurs Qt will be better for almost everything

          Flavio Portela

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nomegenerico
            wrote on last edited by
            #7

            [quote author="Flavio Portela" date="1374195649"]If it helps you, you can use the Qt5.1 QtNecessitas4.8.2 out instead.
            [...] [/quote]

            I've already make some code modification for Qt5 that are no more compatible with Qt4.x, I'll wait for Qt5.2 and hope bugs will be fixed.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              steno
              wrote on last edited by
              #8

              [quote author="Flavio Portela" date="1374019471"]is a bug so I reported it a while atraz still in version 5.1.0 rc2.
              [/quote]

              Can you post a link to the bug?

              1 Reply Last reply
              0
              • strahlexS Offline
                strahlexS Offline
                strahlex
                wrote on last edited by
                #9

                Here is mine seems to be the same problem: https://bugreports.qt-project.org/browse/QTBUG-32596

                Feel free to check out my website machinekoder.com
                and my pet projects Intellicute and QtQuickVcp

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

                  I'm experiencing similar problems and tried compiling Qt5.2.0 alpha to see if they've been fixed. Assuming it's not a mistake on my end, it appears to run the same as Qt5.1.1, with screens not maximizing or refreshing when they should/did with Necessitas and Qt4.8.x. Any updates on the progress of this bug?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    steno
                    wrote on last edited by
                    #11

                    The bug report says it needs more information.

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

                      BTW, the issue I've had with 4.8.2 is that I'd prefer to package the Qt libraries inside the APK, so I can distribute my app on hundreds of Android tablets at a time without manually updating/installing the libraries via Ministro.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        steno
                        wrote on last edited by
                        #13

                        Assuming you mean libraries and not drivers, you can package the libraries in the apk now using qt creator.

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          Tsweti
                          wrote on last edited by
                          #14

                          I have this refresh problem also. When i open a modal dialog and then hide it, it still appears on top of the other widget but i can click and do things with the other widget which indicates that the modal dialog is really closed. The problem is with samsung device. In the emulator it was working ok I think and the same code is working good in iphone device.
                          Is there bug report for this exact thing or some workaround?

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

                            I believe this is connected to this bug:
                            "https://bugreports.qt-project.org/browse/QTBUG-32596":https://bugreports.qt-project.org/browse/QTBUG-32596

                            My device does the same thing and I've noticed that if I rotate the screen 90 degrees and back, it refreshes/resizes the screen correctly.

                            I'm using a RockChip (rk30sdk) device on Android 4.1.1.

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

                              [quote author="steno" date="1381190135"]Assuming you mean libraries and not drivers, you can package the libraries in the apk now using qt creator.[/quote]

                              Sorry, I did mean libraries. Is it possible to package the libraries using Qt4, to avoid this windowing issue with Qt5?

                              The dilemma I have is that I'd like to package the libraries, which I'm not able to do via Necessitas and Qt4, but the windowing issues of Qt5 prevent me from a production solution.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                steno
                                wrote on last edited by
                                #17

                                [quote author="landrew" date="1381244319"]
                                Is it possible to package the libraries using Qt4, to avoid this windowing issue with Qt5?
                                [/quote]

                                I am not sure because I have never tried. I know creator 2.8.1 gives the option of how to package the libraries. You can still use minestro, or package them in the apk.

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

                                  By the way, I believe this was resolved with 5.2.0.

                                  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