数字键盘
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
TianZD 7d41b3d60d add:增加gitignore 2 weeks ago
.gitignore add:增加gitignore 2 weeks ago
CMakeLists.txt modify 2 weeks ago
NumKeyBoard.pri v1.0.0 2 years ago
NumKeyBoard.pro modify 2 weeks ago
NumKeyBoard.qrc modify 2 weeks ago
NumKeyBoard_global.h modify 2 weeks ago
README.md modify 2 weeks ago
numkeydia.cpp modify 2 weeks ago
numkeydia.h modify 2 weeks ago
numkeydia.ui modify 2 weeks ago

README.md

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.