i'm doing that way:
const char* aa
=reinterpret_cast<const
char*>
(f.
map(0,f.
size(),
QFile::NoOptions));
QList<QByteArray> bla
= QByteArray::fromRawData(aa,f.
size()).
split("\n");
QVector<int>::iterator i = qBinaryFind(bla.begin(),bla.end(),"111111");
const char* aa=reinterpret_cast<const char*>(f.map(0,f.size(),QFile::NoOptions));
QList<QByteArray> bla = QByteArray::fromRawData(aa,f.size()).split("\n");
QVector<int>::iterator i = qBinaryFind(bla.begin(),bla.end(),"111111");
To copy to clipboard, switch view to plain text mode
it gives me some errors that i can't figure out:
..\binaryFind\mainwindow.cpp:26: error: invalid conversion from 'const char*' to 'char'
..\binaryFind\mainwindow.cpp:26: error: initializing argument 1 of 'QList<QByteArray> QByteArray::split(char) const'
..\binaryFind\mainwindow.cpp:27: error: cannot convert 'QList<QByteArray>::iterator' to 'int*' in initialization
Bookmarks