QRegExp regExp("[a-fA-F0-9]{4}");
ui->lineEdit_i2c_value->setValidator(new QRegExpValidator(regExp, this));
ui->lineEdit_i2c_register->setValidator(new QRegExpValidator(regExp, this));
QRegExp regExp("[a-fA-F0-9]{4}");
ui->lineEdit_i2c_value->setValidator(new QRegExpValidator(regExp, this));
ui->lineEdit_i2c_register->setValidator(new QRegExpValidator(regExp, this));