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. Qt Widgets Memory Requirements
Forum Updated to NodeBB v4.3 + New Features

Qt Widgets Memory Requirements

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 329 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.
  • D Offline
    D Offline
    Dane 0
    wrote on 12 Aug 2023, 22:45 last edited by
    #1

    What are the typical minimal memory requirements for a Qt Widgets application? I've designed a minimal test app and am seeing memory usage of 57MB on my embedded system for a small window with some text and a couple of graphics.

    C 1 Reply Last reply 12 Aug 2023, 23:40
    0
    • D Dane 0
      12 Aug 2023, 22:45

      What are the typical minimal memory requirements for a Qt Widgets application? I've designed a minimal test app and am seeing memory usage of 57MB on my embedded system for a small window with some text and a couple of graphics.

      C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 12 Aug 2023, 23:40 last edited by
      #2

      @Dane-0 Depends on Qt version, your platform, which modules and features you use do you use static or dynamic linking and what actually is a typical application to you. There's no single answer to any of that.

      As a random single point of data (by no means any indicator) - an app with single empty widget on MSVC Qt 6.5.2 and Win11 takes about 20MB on my machine, 40KB of the actual executable and the rest are the dependencies - core, gui and widgets modules along with compiler runtime and shared system libs.

      Use whatever tools your platform provides to do a breakdown of your mem usage - how much is the executable, dependencies, what libraries you're actually pulling. How much of it is the graphics data? How are you presenting them? Are you using e.g. OpenGL? Make a 5 line app with an empty widget and see how much that takes on your platform.

      D 1 Reply Last reply 16 Aug 2023, 07:32
      2
      • C Chris Kawa
        12 Aug 2023, 23:40

        @Dane-0 Depends on Qt version, your platform, which modules and features you use do you use static or dynamic linking and what actually is a typical application to you. There's no single answer to any of that.

        As a random single point of data (by no means any indicator) - an app with single empty widget on MSVC Qt 6.5.2 and Win11 takes about 20MB on my machine, 40KB of the actual executable and the rest are the dependencies - core, gui and widgets modules along with compiler runtime and shared system libs.

        Use whatever tools your platform provides to do a breakdown of your mem usage - how much is the executable, dependencies, what libraries you're actually pulling. How much of it is the graphics data? How are you presenting them? Are you using e.g. OpenGL? Make a 5 line app with an empty widget and see how much that takes on your platform.

        D Offline
        D Offline
        Dane 0
        wrote on 16 Aug 2023, 07:32 last edited by
        #3

        @Chris-Kawa Thanks. 20MB provides a good rough indication. I have libs built with debugging symbols currently so that will be inflating things. I've decided to just significantly up the size of the RAM on the board as the price difference is not large for the hassle. I'll nonetheless do a bit of investigation into the memory usage breakdown however.

        1 Reply Last reply
        0

        1/3

        12 Aug 2023, 22:45

        • Login

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