Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バイナリファイルの読み取りにQtを使用しています。オブジェクトを使用してファイルをQFile読み取りますが、ファイルの最初に戻ってファイルを再度読み取る必要がある場合がありますが、その方法がわかりません。
QFile
seekあなたはあなたのファイルで関数を使うことができます:
seek
file.seek(0);
を使用してファイルを読み取る場合は、ストリームQTextStreamの関数を使用する必要があります。seek
QTextStream