QHostAddress test;
if (!test.setAddress("111.111.111.1"))
{
    ui->statusBar->showMessage("ERROR : Invalid ip address.");
    return;
}
这样就不用编写正則表達式推断了。

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案