Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93668

Material style controls cost excessive memory

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      As described in mail group (https://lists.qt-project.org/pipermail/interest/2021-May/037055.html), material controls cost excessive memory than normal controls.

      When drawing 500 buttons, normal style controls cost 30.9MB memory while material style cost 550MB (on qt 5.12.2, they are 21.6MB and  1GB respectively).

      The test code is as:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.12
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Repeater {
              model: 500
              Button {
                  x: index * 20
                  width: 100
                  height: 100
              }
          }
      }
      

      And style is switched on/off in qtquickcontrols2.conf

       

       

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-93668
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nus Jie Sun
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change