QLineEdit *editor = new QLineEdit();
// 限制HEX格式: xx xx xx
QRegExp regExp("([a-fA-F0-9]{2})([\\s][a-fA-F0-9]{2})*[\\s]?");
editor->setValidator( new QRegExpValidator(regExp));
11-03
8110

03-28
2509
