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. How to update 6000 buttons.
Forum Updated to NodeBB v4.3 + New Features

How to update 6000 buttons.

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 1.2k 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #1

    Hello All,

    I am working on a new embedded application. As per the details available to me there is one vertical scroll area. Each row has 5 buttons. And the total number of buttons that this scroll area has to show are 6000.

    So at a time only 20 buttons (5 buttons in each row X 4 rows) are visible.
    My question is:

    How QT will handle this situation? Will it only update the visible part of the scroll area or all the 6000 buttons will be updated. When i send the update command then it will only update the buttons in the visible view port or it will take care of all the buttons.

    Since this is an embedded application, drawing and updating 6000 buttons will take lot of time.
    Please tell me if there is any better widget to handle this situation?

    Please enlighten me with your ideas :)

    Cheers
    Siddharth

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

      Hi,

      6000 ? You should maybe take a look at the QGraphicsView framework

      Why do you need that many buttons ? What will they do ?

      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
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Use MVC and QListView/ QTreeView/ etc. together with lazy object loading.

        (Z(:^

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sidii
          wrote on last edited by
          #4

          Dear QT Experts (SGaist and Sierdzio)
          Thanks for your reply. I will look into the solutions provided by you.

          Dear SGaist: Actually 6000 buttons are related to the contact list. Even if the contact list is empty, we still need to show all the empty 6000 buttons.

          Thanks a lot :)

          Siddharth

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

            If you really need to keep the QPushButton design, you should rather work with much less buttons and use e.g. a small database and use e.g. QDataWidgetMapper

            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

            • Login

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