libqtui contains qtui, a Qt 6 Core based terminal UI library that provides ncurses-rendered widgets with Qt-style signals and slots.
qtui/include/qtui/- public headersqtui/src/- library implementationqtui/tests/- interactive test toolsqtui/examples/- example applicationsqtui/README.md- widget API overviewqtui/INTEGRATION.md- integration notes for consumersdocs/- extraction and migration notes
- CMake 3.21 or newer
- C++23 compiler
- Qt 6 Core
- ncursesw development headers and library
cmake --preset default
cmake --build --preset defaultThe default preset builds the shared library, interactive test tools, and example programs in build/.
To build just the library:
cmake -S . -B build/library-only -DQTUI_BUILD_TESTS=OFF -DQTUI_BUILD_EXAMPLES=OFF
cmake --build build/library-onlycmake --install buildThe install step exports a CMake package named qtui, so consumers can use:
find_package(qtui REQUIRED CONFIG)
target_link_libraries(my_app PRIVATE qtui::qtui)Projects can also vendor this repository and use:
add_subdirectory(libqtui/qtui)
target_link_libraries(my_app PRIVATE qtui::qtui)GNU General Public License version 3. See LICENSE and NOTICE.