Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Window::on_pushButtonAdd_clicked()
- {
- QRegExp rxp("[aA2-zZ9 ]");
- if (qstrLine.contains(rxp))
- {
- QErrorMessage err;
- qDebug() << "Invalid";
- (new QErrorMessage(this))->showMessage("Вводимая строка должна состоять из групп нулей и единиц");
- }
- else
- {
- qDebug() << "Valid!";
- ui->comboBoxExistingStrings->addItem(qstrLine);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement