here is a new version, this only contains some fixes InputDeviceV3.zip
Howto use:
main.cpp
#include <QApplication>
#include "inputdevice.h"
int main(int argc, char *argv[])
{
QApplicationa(argc, argv);
InputDevice inputdevice;
//here the code for forms or something else
return a.exec();
}
#include <QApplication>
#include "inputdevice.h"
int main(int argc, char *argv[])
{
QApplicationa(argc, argv);
InputDevice inputdevice;
//here the code for forms or something else
return a.exec();
}
To copy to clipboard, switch view to plain text mode
code for enabling keyboard on a lineedit
aLineEdit->setProperty("keyboard",true); //enable the keyboard (this is a custom property)
aLineEdit
->setValidator
(QIntValidator(0,
500));
//add a int validator min value 0 max value 500. This will force the numpad to show, you can also use a QDoubleValidator
aTextLineEdit->setProperty("keyboard",true); // enable the keyboard. when there is no validator set the keyboard will show
//aTextLineEdit->setProperty("maxLength",25); //this can be used to limit the length of the string
//it is also possible to set the properties in QT designer
aLineEdit->setProperty("keyboard",true); //enable the keyboard (this is a custom property)
aLineEdit->setValidator(QIntValidator(0,500)); //add a int validator min value 0 max value 500. This will force the numpad to show, you can also use a QDoubleValidator
aTextLineEdit->setProperty("keyboard",true); // enable the keyboard. when there is no validator set the keyboard will show
//aTextLineEdit->setProperty("maxLength",25); //this can be used to limit the length of the string
//it is also possible to set the properties in QT designer
To copy to clipboard, switch view to plain text mode
Bookmarks