2026-04-25 16:50:02 +08:00
2026-04-25 16:50:02 +08:00
2026-04-25 16:33:53 +08:00
2026-04-25 16:33:53 +08:00
2023-12-26 16:37:21 +08:00
2026-04-25 16:33:53 +08:00
2026-04-25 16:33:53 +08:00
2026-04-25 16:33:53 +08:00
2026-04-25 16:33:53 +08:00
2026-04-25 16:33:53 +08:00
2026-04-25 16:33:53 +08:00

NumKeyBoard

Libs/NumKeyBoard is the shared numeric keyboard library used by both TGcs and LauncherLib.

qmake

Build the library from TGcsProject.pro or Libs/NumKeyBoard/NumKeyBoard.pro, then link it from consumer projects:

unix|win32: LIBS += -L$$PWD/Build/Libs/ -lNumKeyBoard
INCLUDEPATH += $$PWD/Libs/NumKeyBoard
DEPENDPATH += $$PWD/Libs/NumKeyBoard

API

Use the shared singleton-style keyboard API:

auto *keyboard = KeyBoard::app();
if(!keyboard)
{
    keyboard = new NumKeyDia;
}

keyboard->setValue(lineEdit->text());
keyboard->exec();
lineEdit->setText(keyboard->getValue());

The old setPLineEdit / range-validation API is no longer part of the shared library.

S
Description
数字键盘
Readme 58 KiB
Languages
C++ 85.6%
QMake 5.6%
CMake 4.9%
C 3.9%