qtextistream.3qt

来自「linux下GUI编程工具qt的在线连接帮助手册」· 3QT 代码 · 共 77 行

3QT
77
字号
'\" t.TH QTextIStream 3qt "11 October 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQTextIStream \- Convenience class for input streams.PP\fC#include <qtextstream.h>\fR.PPInherits QTextStream..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQTextIStream\fR ( const QString * s )".br.ti -1c.BI "\fBQTextIStream\fR ( QByteArray ba )".br.ti -1c.BI "\fBQTextIStream\fR ( FILE * f )".br.in -1c.SH DESCRIPTIONThe QTextIStream class is a convenience class for input streams..PPFor simple tasks code should be simple, so this class is a shorthand to avoid passing the \fImode\fR argument to the normal QTextStream constructors..PPThis class makes it easy, for example, to write things like this:.PP.nf.br    QString data = "123 456";.br    int a, b;.br    QTextIStream(&data) >> a >> b;.fi.PPSee also QTextOStream, Input/Output and Networking and Text Related Classes..SH MEMBER FUNCTION DOCUMENTATION.SH "QTextIStream::QTextIStream ( const QString * s )"Constructs a stream to read from the string \fIs\fR..SH "QTextIStream::QTextIStream ( QByteArray ba )"Constructs a stream to read from the array \fIba\fR..SH "QTextIStream::QTextIStream ( FILE * f )"Constructs a stream to read from the file \fIf\fR..SH "SEE ALSO".BR http://doc.trolltech.com/qtextistream.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qtextistream.3qt) and the Qtversion (3.0.0).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?