Projects
View on GitHub
RealChuan/Qt-Graphics
RealChuan/Qt-Graphics has 44 GitHub stars and 10 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 01:28 UTC. Last push 2026-07-20.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
基于Qt Graphics View Framework框架写的看图、编辑图片、绘制简单图形、截屏和录制GIF的程序,以及opengl、vulkan、QRhi渲染2D的纹理的功能。
Creative & MediaREADME.en.md
OriginalQt Graphics
Notice: The renderings may not be updated in time.
支持更多图片格式
For more image formats, please refer tokimageformats-binaries:
- from
ActionsDownload inArtifactsfolder,kimg_*Unzip the library file to the Qt packaged directoryimageformatsin folder; - Other dependent library files need to be placed in the directory at the same level of the main program or where the main program can load.
Pros and cons of rendering 2D textures with GPU (QRhiWidget, QVulkanWindow, QOpenGLWidget)
advantage
- Excellent performance: Compared with the image viewing interface based on QGraphicsView, GPU rendering is smoother and the CPU occupies extremely low.
shortcoming
- Rotate display problem: When rotating at any angle, the texture aspect ratio may change, resulting in abnormal display.
- openglviewA temporary solution is provided in this article to maintain the aspect ratio of the original image when rotated, but the original zoom ratio needs to be discarded and adjusted to adapt to the window or original image size.
- Please refer to the specific implementation
rotatedTextureSize、rotateNinetiethandanti_rotateNinetiethfunction.
QVulkanWindow Compilation Instructions
Known compilation issues
- CMake(MacOS): The QVulkanWindow related header file cannot be found, and the compilation failed.
- qmake:
- MacOS: The QVulkanWindowRenderer header file is missing, and the compilation failed.
- Ubuntu: The QVulkanInstance header file is missing, and the compilation failed.
- Compilation of the above environment has been temporarily disabled.
Multi-image file viewer
- Support from single files (e.g.
ico、gifRead multiple images in, etc.) and display them. - Other formats need to be dependent
kimageformats-binaries插件支持。
ICO file production
Known issues
- **FreeImage**Generate inclusion
256x256The image has a flaw in its ICO file: it will incorrectly set the width and height field directly to256, not the format specification required0or255, causing Windows Explorer to fail to correctly recognize the resolution. - Solution:
- Used basedQtIcoHandlerModifiedicowriter。
- Recommended resolution:
256x256、128x128、64x64、48x48、32x32、16x16。
Functional interface example
1. Image viewing interface
2. Mosaic drawing (eraser effect)
3. Rounded corners/circular icon editing
Notice: Please save it in PNG format, otherwise the rounded area may appear in black.
![]()
4. Simple graphic drawing
5. Movie subtitles
- The left side is a quick zoom preview (may be blurry), and the right side is the original image.
- When actually generated, it is cropped based on the original image, and the clarity can be verified after saving.
6. GIF recording (egif/gif-h library) and screenshot functions
- The following image uses the GIF recording function to demonstrate the screenshot process:
- After taking a screenshot, you can use the graphics drawing function in (4) to edit it.