Learn how to build a specific Qt widget by running and reading the matching self-contained demo project.
Copy a working serial port debugger or network tool from the demos and adapt it to your own desktop application.
Use the video monitoring or FFmpeg playback demo as a starting point for adding video display to a Qt app.
Requires Qt 4.6 to 6.6 installed, README and code comments are written in Chinese.
QWidgetDemo is a collection of more than 100 small, independent C++ demo projects built with Qt, a framework for creating desktop application windows and user interfaces. Each demo covers one specific topic and can be compiled and run on its own, making the collection useful as a reference or learning resource for developers getting started with Qt. The demos are grouped into several categories. The control group includes custom interface elements like a battery charge indicator, a navigation button, an IP address input field, a smooth curve display, and a CPU and memory usage label. The tool group covers small utility programs such as a serial port debugger, a network debugger, a Base64 image converter, a code line counter, an email sender, and a secret key generator. The video group demonstrates video monitoring layouts and video playback using external libraries including FFmpeg, VLC, and MPV. The widget group includes a color picker, a frameless window template, a GIF screen recorder, a lunar calendar widget, and a screen capture tool. The ui group focuses on visual styling, with examples of flat design themes, icon font helpers, and various styled interface layouts. There are also demos for third-party integrations, including a chart library called QCustomPlot, and demos contributed by community members covering features like image cropping and slide puzzle captchas. All projects have been tested against Qt versions 4.6 through 6.6 on Windows, Linux, macOS, and the UOS operating system. A few demos do not support Qt 6 and are skipped automatically when compiling the full collection. The repository recommends downloading via git rather than as a ZIP file to avoid extraction errors. The README is written in Chinese and is aimed at developers learning Qt through practical, focused examples. The code is described as clean and well-commented. The author requests no monetary tips and asks instead for comments and feedback.
← feiyangqingyun on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.