数字键盘
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.
 
 
 
 

717 B

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.