Skip to content

Qt for MCUs

Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

156 Topics 476 Posts
  • Welcome to the Qt for MCUs forum!

    Pinned Locked
    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    7 Posts
    1k Views
    I
    @say_1 said in How to Optimize Font Memory Usage in Qt for MCUs 2.7.1 (fontcompiler-args not supported): Hi everyone, I'm working on a project using Qt for MCUs 2.7.1, and I'm currently facing a memory optimization issue related to fonts. Setup Details: Qt version: 2.7.1 (mandatory due to customer constraint) Toolchain: IAR Fonts used: TTF .qmlproject is exported using a .bat file that calls qmlprojectexporter.exe The generated file qul_font_engines.cpp alone is taking up around 3636 KB of memory, which is too large for our current memory constraints. My goal is to bring this down under 1000 KB if possible. What I've Already Tried (Please Don't Suggest These Again 🙂): --fontcompiler-args option in the .bat file: I tried using --fontcompiler-args "--chars=0123456789" Result: Not supported in Qt for MCUs 2.7.1 → shows Unknown options: fontcompiler-args, chars Verified fontcompiler.exe is present in 2.7.1, but CLI option is still not supported. Cannot upgrade to Qt 2.8.0 or later due to customer-mandated toolchain freeze. Tried setting font size lower in QML (font.pixelSize: 16) and limited font styles (font.bold/italic: false) → helped marginally but not enough. Started reviewing QML files to eliminate unused text/glyphs. What I'm Looking For: Are there any other ways in Qt for MCUs 2.7.1 to reduce the font memory footprint without relying on unsupported CLI arguments? Is there a way to use fontCompilerOptions inside .qmlproject or .qmlprojectconfig that can limit the character set? Can I manually run fontcompiler.exe to generate .qulfnt files and use them directly in my .qmlproject? Any other suggestions to significantly reduce qul_font_engines.cpp size? Any advice or experience you can share would be greatly appreciated! Thanks in advance — Sayali In Qt for MCUs, since fontcompiler-args isn’t supported, the best way to reduce memory usage is to limit the glyph range to only the characters your UI actually needs. Avoid embedding multiple font weights or large Unicode sets, as each variant increases flash consumption. You can also preprocess special fonts using subsetting tools (like pyftsubset) before importing them. Keeping fallback fonts disabled and minimizing font sizes will further optimize memory usage.
  • Query: Placing OTF Font Resources in External storage in Qt for MCUs

    Unsolved
    1
    0 Votes
    1 Posts
    51 Views
    No one has replied
  • STM32L4R7VITx support

    Unsolved
    1
    0 Votes
    1 Posts
    128 Views
    No one has replied
  • QT for MCU

    Unsolved
    7
    0 Votes
    7 Posts
    534 Views
    B
    @aha_1980 But I tested on STM32Cube IDE and made custom demo with multiple task it was working then I think it should be also working on Qt for MCU setup.
  • HYPERRAM Utilization for OnStartUp Image Cache Policy

    Unsolved
    2
    0 Votes
    2 Posts
    217 Views
    No one has replied
  • 0 Votes
    1 Posts
    138 Views
    No one has replied
  • No rule to make target 'libQulCore...

    Unsolved
    1
    0 Votes
    1 Posts
    244 Views
    No one has replied
  • Compilation issue for MCU 1.7.0

    Unsolved
    1
    0 Votes
    1 Posts
    244 Views
    No one has replied
  • Qt Quick Ultralite FMP font: Glyphs rendering out of order in dynamic text updates

    Unsolved
    1
    0 Votes
    1 Posts
    240 Views
    No one has replied
  • Disable Qt and Force a full Repaint when the device is waking from Sleep Mode.

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    Axel SpoerlA
    Qt for MCU is a commercial product. Just contact your account manager, who will help you find a solution with professional services.
  • Integrating Qt for MCUs UI with STM32CubeIDE to Control LED on STM32H7S78-DK

    Unsolved
    1
    0 Votes
    1 Posts
    206 Views
    No one has replied
  • QMediaRecorder with raspberry pi

    Unsolved
    1
    0 Votes
    1 Posts
    215 Views
    No one has replied
  • 0 Votes
    1 Posts
    231 Views
    No one has replied
  • meta-qt5.15 yocto build issue

    Unsolved
    1
    0 Votes
    1 Posts
    802 Views
    No one has replied
  • 0 Votes
    1 Posts
    3k Views
    No one has replied
  • Code is getting reset.

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    jsulmJ
    @Vishal-Biradar said in Code is getting reset.: But after certain period code is resting means display is getting off again restart Do you mean your app is crashing? The OS is restarting? Please say exactly what happens. Regarding your code: using an endless loop in an event driven application is a no-go...
  • Library Files Modified on Rebuild Without Code Changes – Qt for MCU

    Unsolved
    1
    0 Votes
    1 Posts
    454 Views
    No one has replied
  • 0 Votes
    1 Posts
    494 Views
    No one has replied
  • Qt safe rendering for yocto

    Moved Unsolved
    1
    0 Votes
    1 Posts
    457 Views
    No one has replied