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. Running application in Android reduced functionalities for QList

Running application in Android reduced functionalities for QList

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
24 Posts 6 Posters 2.2k 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.
  • A AdrianLV

    @MartinGU

    Example of bugreport: https://bugreports.qt.io/browse/QTBUG-128794

    I see, but you still have not got a reply, right?

    Use the first constructor, the one without filename.

    Is this one better than: https://doc.qt.io/qt-6/qstandardpaths.html?

    Thank you so much for your time!

    M Offline
    M Offline
    MartinGU
    wrote on last edited by
    #11

    @AdrianLV said in Running application in Android reduced functionalities for QList:

    @MartinGU

    Example of bugreport: https://bugreports.qt.io/browse/QTBUG-128794

    I see, but you still have not got a reply, right?

    I got a reply from Axel Spoerl that there are problems, but if/when it will be fixed is anyones guess.

    Did I understand that that the redraw problems persist in QtQuick?

    Use the first constructor, the one without filename.

    Is this one better than: https://doc.qt.io/qt-6/qstandardpaths.html?

    Depends on what you want. If you want to save data for your app, like settings/INI files then QSettings are best.
    If you want to share your data with other apps, make it visible as a file to the user then use the correct QStandardPath.

    Thank you so much for your time!
    No worries :)

    A 1 Reply Last reply
    0
    • jsulmJ jsulm

      @AdrianLV said in Running application in Android reduced functionalities for QList:

      What would you suggest instead of moving windows?

      Why do you want to move windows on Android? By default an application consumes the whole space (except the top and bottom bars).

      "A QListWidget, but I erased it when I saw it not working" - so, it is not about QList but QListWidget? Did you debug the slot to see what happens?
      You could also provide a minimal compilable example showing this issue.

      A Offline
      A Offline
      AdrianLV
      wrote on last edited by
      #12

      Why do you want to move windows on Android?

      I don't necessarily want it to be moving window, but I just wanted to open a second window in which I would be able to connect my device to my sensor.

      You could also provide a minimal compilable example showing this issue.

      Sorry, how is this done? Should I compress the build file and upload it here? Or is it compressing the files without the build?

      Thank you for your time!

      jsulmJ 1 Reply Last reply
      0
      • A AdrianLV

        Why do you want to move windows on Android?

        I don't necessarily want it to be moving window, but I just wanted to open a second window in which I would be able to connect my device to my sensor.

        You could also provide a minimal compilable example showing this issue.

        Sorry, how is this done? Should I compress the build file and upload it here? Or is it compressing the files without the build?

        Thank you for your time!

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #13

        @AdrianLV said in Running application in Android reduced functionalities for QList:

        but I just wanted to open a second window in which I would be able to connect my device to my sensor.

        You should not do this on mobile platforms - this is against the style guidelines (mobile applications usually do not have more than one window).

        "Sorry, how is this done? Should I compress the build file and upload it here?" - no, you simply provide a minimal application showing this issue, without any unnecessary code. This makes it easier to reproduce the issue and to debug it. You provided a lot of code, but most of it is not relevant for the issue.

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

        A A 2 Replies Last reply
        0
        • M MartinGU

          @AdrianLV said in Running application in Android reduced functionalities for QList:

          @MartinGU

          Example of bugreport: https://bugreports.qt.io/browse/QTBUG-128794

          I see, but you still have not got a reply, right?

          I got a reply from Axel Spoerl that there are problems, but if/when it will be fixed is anyones guess.

          Did I understand that that the redraw problems persist in QtQuick?

          Use the first constructor, the one without filename.

          Is this one better than: https://doc.qt.io/qt-6/qstandardpaths.html?

          Depends on what you want. If you want to save data for your app, like settings/INI files then QSettings are best.
          If you want to share your data with other apps, make it visible as a file to the user then use the correct QStandardPath.

          Thank you so much for your time!
          No worries :)

          A Offline
          A Offline
          AdrianLV
          wrote on last edited by
          #14

          @MartinGU

          but if/when it will be fixed is anyones guess.

          That is a shame...

          Did I understand that that the redraw problems persist in QtQuick?

          I did not try my application with QtQuick, I was ready to try to do the transition, but I thought of a workaround that I don't like, but I guess for now it will be the solution(Not displaying a second window, but just connect directly to a pre saved UUID device).

          Depends on what you wan

          Wow, thank you so much!

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @AdrianLV said in Running application in Android reduced functionalities for QList:

            but I just wanted to open a second window in which I would be able to connect my device to my sensor.

            You should not do this on mobile platforms - this is against the style guidelines (mobile applications usually do not have more than one window).

            "Sorry, how is this done? Should I compress the build file and upload it here?" - no, you simply provide a minimal application showing this issue, without any unnecessary code. This makes it easier to reproduce the issue and to debug it. You provided a lot of code, but most of it is not relevant for the issue.

            A Offline
            A Offline
            AdrianLV
            wrote on last edited by
            #15

            @jsulm

            You should not do this on mobile platforms

            I see... Thank you for the advice

            no, you simply provide a minimal application showing this issue, without any unnecessary code.

            I created this small app, should be created as widget app with a ui. I compiled it with Clang arm64-68. Add a QListWidget Item and call it list to the window, add 2 buttons one called refill and other one clear and add slots on clicked

            void MainWindow::on_refill_clicked()
            {
                for (int var = 0; var < 6; ++var) {
                    new QListWidgetItem(QString::number(var), ui->list);
                }
            
            }
            
            
            void MainWindow::on_clear_clicked()
            {
                ui->list->clear();
            }
            

            In my device, when running it you can see how the list gets partially cleared and partially filled.

            jsulmJ 1 Reply Last reply
            0
            • A AdrianLV

              @jsulm

              You should not do this on mobile platforms

              I see... Thank you for the advice

              no, you simply provide a minimal application showing this issue, without any unnecessary code.

              I created this small app, should be created as widget app with a ui. I compiled it with Clang arm64-68. Add a QListWidget Item and call it list to the window, add 2 buttons one called refill and other one clear and add slots on clicked

              void MainWindow::on_refill_clicked()
              {
                  for (int var = 0; var < 6; ++var) {
                      new QListWidgetItem(QString::number(var), ui->list);
                  }
              
              }
              
              
              void MainWindow::on_clear_clicked()
              {
                  ui->list->clear();
              }
              

              In my device, when running it you can see how the list gets partially cleared and partially filled.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #16

              @AdrianLV This is a piece of code, not a minimal application.
              But OK.
              "you can see how the list gets partially cleared and partially filled" - you mean not all entries are removed if you clear the list and if you add 6 entries you see less than 6 of them in the UI? And this only happens on Android?
              Does "ui->list->update();" after clearing the list or adding entries to it help?

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

              A 1 Reply Last reply
              0
              • jsulmJ jsulm

                @AdrianLV This is a piece of code, not a minimal application.
                But OK.
                "you can see how the list gets partially cleared and partially filled" - you mean not all entries are removed if you clear the list and if you add 6 entries you see less than 6 of them in the UI? And this only happens on Android?
                Does "ui->list->update();" after clearing the list or adding entries to it help?

                A Offline
                A Offline
                AdrianLV
                wrote on last edited by
                #17

                @jsulm

                This is a piece of code, not a minimal application.

                Sorry, how can I share the minimal application?

                you mean not all entries are removed if you clear the list and if you add 6 entries you see less than 6 of them in the UI? And this only happens on Android?

                All entries are removed on the backend, but not on the graphics(Only when you click 2 times the clear button you can see that they were removed). After adding the elements, you can see only after the second adding that there is something being added. And yes, in my computer it is working normally.

                Does "ui->list->update();" after clearing the list or adding entries to it help?

                Sadly, not...

                jsulmJ 1 Reply Last reply
                0
                • A AdrianLV

                  @jsulm

                  This is a piece of code, not a minimal application.

                  Sorry, how can I share the minimal application?

                  you mean not all entries are removed if you clear the list and if you add 6 entries you see less than 6 of them in the UI? And this only happens on Android?

                  All entries are removed on the backend, but not on the graphics(Only when you click 2 times the clear button you can see that they were removed). After adding the elements, you can see only after the second adding that there is something being added. And yes, in my computer it is working normally.

                  Does "ui->list->update();" after clearing the list or adding entries to it help?

                  Sadly, not...

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #18

                  @AdrianLV said in Running application in Android reduced functionalities for QList:

                  Sorry, how can I share the minimal application?

                  You can upload it to some file sharing service and post the link here.

                  To me it sounds like a bug. You can report it on Qt Bug Tracker adding a minimal application. Keep in mind that for mobile platforms Qt Company prefers QML/QtQuick over QtWidgets.

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

                  D 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @AdrianLV said in Running application in Android reduced functionalities for QList:

                    but I just wanted to open a second window in which I would be able to connect my device to my sensor.

                    You should not do this on mobile platforms - this is against the style guidelines (mobile applications usually do not have more than one window).

                    "Sorry, how is this done? Should I compress the build file and upload it here?" - no, you simply provide a minimal application showing this issue, without any unnecessary code. This makes it easier to reproduce the issue and to debug it. You provided a lot of code, but most of it is not relevant for the issue.

                    A Offline
                    A Offline
                    ankou29666
                    wrote on last edited by
                    #19

                    @jsulm said in Running application in Android reduced functionalities for QList:

                    @AdrianLV said in Running application in Android reduced functionalities for QList:

                    but I just wanted to open a second window in which I would be able to connect my device to my sensor.

                    You should not do this on mobile platforms - this is against the style guidelines (mobile applications usually do not have more than one window).

                    StackLayout in QML or QStackLayout or QStackWidget (among others) for QtWidgets could be considered as an alternative to a popup window.

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @AdrianLV said in Running application in Android reduced functionalities for QList:

                      Sorry, how can I share the minimal application?

                      You can upload it to some file sharing service and post the link here.

                      To me it sounds like a bug. You can report it on Qt Bug Tracker adding a minimal application. Keep in mind that for mobile platforms Qt Company prefers QML/QtQuick over QtWidgets.

                      D Offline
                      D Offline
                      drwho 0
                      wrote on last edited by
                      #20

                      @jsulm said in Running application in Android reduced functionalities for QList:

                      Keep in mind that for mobile platforms Qt Company prefers QML/QtQuick over QtWidgets.

                      Did Qt communicate this somewhere?

                      jsulmJ 1 Reply Last reply
                      0
                      • D drwho 0

                        @jsulm said in Running application in Android reduced functionalities for QList:

                        Keep in mind that for mobile platforms Qt Company prefers QML/QtQuick over QtWidgets.

                        Did Qt communicate this somewhere?

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #21

                        @drwho-0 https://doc.qt.io/qt-5/topics-ui.html#widget-based-user-interfaces

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

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          MartinGU
                          wrote on last edited by
                          #22

                          I installed Qt 6.6.3 and and tried my C++ widget application (QList and QLineEdit).
                          The bugs in 6.7.2 was NOT there. So instead of rewriting in QML I continue with 6.6.3 for Android projects.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            MartinGU
                            wrote on last edited by
                            #23

                            Not solved in 6.8 :(

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              ankou29666
                              wrote on last edited by
                              #24

                              As I already said, QtWidgets has never been intended to work with mobile devices. So knowing the history of Qt, knowing why QtQuick has been created ... I wouldn't expect this bug to be addressed.

                              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