sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
list of classes in this module
CMake target for BuildLah: SGEXTN::SG_Widgets
see this link for more information about BuildLah
The SGWidget module provides access to the SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ system and allows you to build graphical user interfaces (GUIs). This is needed for all non command line applications.
The SGWidget module uses Qt Quick internally to render, so all rendering is GPU accelerated and works on all GPUs. However, everything Qt is abstracted away, so you would never need to touch signal-slot, QML, or JavaScript. Note that SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ is a imperative, not declarative, GUI toolkit, making it more familiar to C++ developers. callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ is used instead of signal-slot for event listening and callback functions.
SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ has resizing builtin, so anything using it will resize automatically to fit the screen aspect ratio. This is done using w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ is also builtin and allows you to customise the appearance of the application UI easily.
application icon ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ is used to display icons on buttons. Note that instead of SVGs or images, fonts are used. This means that the colour of icons always match the theme automatically. Using fonts also provide a performance improvement.
This module does not have builtin support for displaying images. For images, you need to build a custom shader, which is actually really easily done with SG - RI ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
SingCorrect ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ is builtin to all SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ input fields. This replaces SingCorrect ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ commands, which look like LaTeX, with the corresponding Unicode character automatically, making it very easy for the user to input mathematical or scientific notation.
File uploading and file downloading functionality is provided through SGXFileDownloader and SGXFileUploader. This refers to bringing files into and out of the application folder, not actually transmitting them over a network.
©2025 05524F.sg (Singapore)