Watch 500 Star 1.9K Fork 504

idea4good / GuiLiteC++Apache-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
㊙大道至简 -- 5千行,仅头文件,全平台 GUI库 spread retract

  • C++ 98.4%
  • Shell 0.8%
  • Batchfile 0.4%
  • CMake 0.2%
  • C 0.2%
Clone or download
Notice: Creating folder will generate an empty file .keep, because not support in Git

Welcome to GuiLite


The smallest header-only GUI library (5 KLOC) for all platforms.

Why GuiLite


  • ✂️Small: Just under 5,000 lines of C++ and header-only: GuiLite.h

  • ⚡Fast: Render a GUI within one invocation, independent of any OS or 3rd party library

  • 💉Embeddable: Runs inside Qt/MFC/Winform/Cocoa/Web - Keep legacy Qt/MFC code reusable

  • ⚙️️Hardware Minimum Requirements:

    Processor Disk/ROM space Memory
    24 MHZ 29 KB 9 KB

Cross platform

  • Supported OSes: iOS/macOS/WathOS, Android, Linux, Windows, RTOS... or MCU without OS
  • Supported languages: C/C++, Swift, Java, Javascript, C#, Golang...
  • Supported 3rd party libraries: Qt, MFC, Winforms, CoCoa...

Useful features

  • 🔣Multi-language, supports UTF-8
  • 🔨Toolkit for building font/image resources
  • 📐Layout GUI WYSIWYG
  • ☁️Cloud + IoT Solution
  • 📊Code Telemetry and Analysis in real time
  • 📦Supports 3D and Web
  • 🐋Run in docker with a single command: sudo docker run -it --privileged -v /dev:/dev-share idea4good/gui-lite:latest bash /

Easy to learn and support

Even a C beginner could master GuiLite quickly. The source code only uses basic C++ features (class, virtual function). We chose C++ as it could make the code size significantly smaller and easier to read.

Demo wall

Click the image you like, and run it on your hardware

3D on STM32

Wave on STM32

Particle on STM32

Star on STM32

3D wave on STM32

Keyboard on STM32

Mario on STM32

3D circle on STM32


Molecule move

Pendulum effect

Swipe view

3D on Apple Watch

Wave on Apple Watch

Particle on iPhone

HostMonitor on iPhone

Layout GUI

Run Windows on Linux


Code Telemetry & Analysis in real time

Scroll widget

Transparent dialog

3D Nets on Windows/Linux

How to use widgets


3D on Web

3D on Web

Tutorial on Web

HostMonitor on Windows

HostMonitor on IoT-Cloud

HostMonitor on Android

HostMonitor on Windows Mixed Reality

HostMonitor on Mac

HostMonitor on Linux

Most of the demos have about 100 lines of UI code, more details here.

📞Community Channel

Thanks for the help from the community, you all make GuiLite better! And welcome to any new friend to join us.




Comments ( 90 )

Sign in for post a comment