Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
textdocumentendsnippet.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
#
include
<
QtGui
>
5
#
include
<
iostream
>
6
7
namespace
textdocumentendsnippet
{
8
void
wrapper
()
9
{
10
QString contentString(
"One\nTwp\nThree"
);
11
QTextDocument *doc =
new
QTextDocument(contentString);
12
13
//! [0]
14
for
(QTextBlock it = doc->begin(); it != doc->end(); it = it.next())
15
std
::cout << it.text().toStdString() <<
"\n"
;
16
//! [0]
17
18
}
// wrapper
19
}
//textdocumentendsnippet
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
textdocumentendsnippet
Definition
textdocumentendsnippet.cpp:7
textdocumentendsnippet::wrapper
void wrapper()
Definition
textdocumentendsnippet.cpp:8
qtbase
src
gui
doc
snippets
textdocument-end
textdocumentendsnippet.cpp
Generated on
for Qt by
1.14.0