Qt
超超王贱贱
贱贱王超超
展开
-
QLineEdit::setValidator ( const QValidator * v )
QRegExpValidator *validator = new QRegExpValidator(QRegExp("^[0-9]*$"), this); this->ui->lineEdit->setValidator(validator);原创 2011-12-02 00:37:31 · 5128 阅读 · 0 评论 -
Get file Hash with Qt
QString filePath = "/raid0/NVIDIA-Linux-x86_64-295.20.run"; QFile theFile(filePath); theFile.open(QIODevice::ReadOnly); QByteArray ba = QCryptographicHash::hash(theFile.readAll(),QCryptogr原创 2012-12-07 18:50:36 · 459 阅读 · 0 评论