Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Regarding the CPU Usage in arm board for an example of QTableView while scrolling
Forum Updated to NodeBB v4.3 + New Features

Regarding the CPU Usage in arm board for an example of QTableView while scrolling

Scheduled Pinned Locked Moved Unsolved General and Desktop
28 Posts 5 Posters 7.7k Views 2 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #2

    this is due to paint being called frequently an in turn it having to query the model for data. fast scrolling brings my CPU usage to 10% (intel i7 3.6GHz). Do you use custom delegates or just pure Qt classes?

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    1
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by
      #3

      I am using Qt Classes , i am not using any custom delegates. Is their any difference in working in Desktop and Arm Board with the the same program?.

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Hi,

        Depends on your Arm board, but it's likely less powerful than your desktop machine CPU/GPU wise. What board are you running your application on ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • Pradeep KumarP Offline
          Pradeep KumarP Offline
          Pradeep Kumar
          wrote on last edited by
          #5

          I am using ARM 11. The application is running on ARM 11.

          Pradeep Kumar
          Qt,QML Developer

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            That's an architecture. There are lots of ARM11 based processors/boards. What are you using exactly ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • Pradeep KumarP Offline
              Pradeep KumarP Offline
              Pradeep Kumar
              wrote on last edited by
              #7

              Visiontek Pos device

              Pradeep Kumar
              Qt,QML Developer

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Can you give a link to the device description ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on last edited by Pradeep Kumar
                  #9

                  The link is here , here is the link for the specifications of the device

                  Pradeep Kumar
                  Qt,QML Developer

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Ok, so you have have a single core 1GHz processor with 512MB of RAM.

                    What size is your model ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    Pradeep KumarP 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Ok, so you have have a single core 1GHz processor with 512MB of RAM.

                      What size is your model ?

                      Pradeep KumarP Offline
                      Pradeep KumarP Offline
                      Pradeep Kumar
                      wrote on last edited by
                      #11

                      @SGaist

                      The size is 320 , 240.

                      Pradeep Kumar
                      Qt,QML Developer

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        I meant the data model

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        Pradeep KumarP 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          I meant the data model

                          Pradeep KumarP Offline
                          Pradeep KumarP Offline
                          Pradeep Kumar
                          wrote on last edited by
                          #13

                          @SGaist

                          can u brief me up regarding the data model. what is it.?.

                          Pradeep Kumar
                          Qt,QML Developer

                          jsulmJ 1 Reply Last reply
                          0
                          • Pradeep KumarP Pradeep Kumar

                            @SGaist

                            can u brief me up regarding the data model. what is it.?.

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

                            @Pradeep-Kumar From your first post: "i have used QStandardItemModel as a model" - so I guess the question is how big is this model (how many elements does it contain)?

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

                            1 Reply Last reply
                            1
                            • Pradeep KumarP Offline
                              Pradeep KumarP Offline
                              Pradeep Kumar
                              wrote on last edited by
                              #15

                              The standard item model data was having 3 columns and the rows values depends on DB values. it will increase as per the db values.

                              Pradeep Kumar
                              Qt,QML Developer

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                Then what is the usual size of your database ?

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • Pradeep KumarP Offline
                                  Pradeep KumarP Offline
                                  Pradeep Kumar
                                  wrote on last edited by
                                  #17

                                  Without Db also i tried the same, again i have observed the CPU % gradually increases to 100%. i didnt understand the behaviour. please guide me.

                                  Pradeep Kumar
                                  Qt,QML Developer

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #18

                                    Without any test case to run, it's pretty much impossible to help you get further. There's also no information about what else is running on your target or what your application does that might or might not be influenced by what happens in your GUI.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • Pradeep KumarP Offline
                                      Pradeep KumarP Offline
                                      Pradeep Kumar
                                      wrote on last edited by
                                      #19

                                      Their was some daemon process running, when i checked the application.

                                      Pradeep Kumar
                                      Qt,QML Developer

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #20

                                        Use top to see which is the processor hog: Likely your application but you have to verify to be sure.

                                        After that confirmation, it would also be useful if you could describe precisely how you trigger that CPU load.

                                        On a side note: which version of Qt are you using ? With which plugin ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • Pradeep KumarP Offline
                                          Pradeep KumarP Offline
                                          Pradeep Kumar
                                          wrote on last edited by
                                          #21

                                          I will check the process bu using command top.
                                          I am using Qt version 5.7.

                                            <After that confirmation, it would also be useful if you could describe precisely how you trigger that CPU load.>
                                          

                                          I didnt get the above statement.

                                          Pradeep Kumar
                                          Qt,QML Developer

                                          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