Obsolete Members for QTextStream

QTextStream 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 말 것을 강력히 권장합니다.

공개 함수

(deprecated in 6.12) QTextStream &operator>>(char *c)

멤버 함수 설명

[deprecated in 6.12] QTextStream &QTextStream::operator>>(char *c)

이 함수는 6.12 버전부터 사용 중단 예정입니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

QByteArray 오버로드를 사용하십시오. 이 함수는 안전하게 사용할 수 없습니다. 이 함수는 Qt 7에서 제거될 예정입니다.

단어를 UTF-8로 변환하여 '\0' 문자로 종료되는 형태로 c 에 저장합니다. 사용할 단어가 없는 경우, '\0' 문자만 저장됩니다.

경고: 이 연산자는 편리하지만 위험하므로 주의해서 사용해야 합니다. ` QTextStream `는 ` c `가 단어를 담을 수 있는 충분한 공간이 있는 버퍼를 가리킨다고 가정합니다. 버퍼가 너무 작으면 애플리케이션이 충돌할 수 있습니다. ` n `개의 QChar로 구성된 단어의 경우, 버퍼 길이는 최소한 ` 3*n+1 `자 이상이어야 합니다.

가능하다면 대신 QByteArray 연산자를 사용하십시오.

이는 오버로드된 함수입니다.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.