Fix small errors in the C++ integration tutorials

Fix spelling and remove QGraphicsItem::ItemHasNoContents reference.

Pick-to: 6.5
Task-number: QTBUG-111033
Change-Id: I9564fa1bb4eb1af786078d1909a3ad8268dfe290
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Friedemann Kleint 2023-05-05 08:00:54 +02:00
parent 4a7d15c74b
commit 442d8cc02e
2 changed files with 2 additions and 3 deletions

View File

@ -71,7 +71,7 @@ time, and how to expose third party objects to QML.
\section1 Inheritance and Coercion
\c extending-qml-advanced/advanced2-Inheritanace-and-coercion
\c extending-qml-advanced/advanced2-Inheritance-and-coercion
Right now, each attendant is being modelled as a person. This is a bit too
generic and it would be nice to be able to know more about the attendees. By

View File

@ -111,8 +111,7 @@ Similarly, for the registration to take effect when using CMake, use the
The class implementation in \c piechart.cpp simply sets and returns the
\c m_name and \c m_color values as appropriate, and implements \c paint() to
draw a simple pie chart. It also turns off the QGraphicsItem::ItemHasNoContents
flag to enable painting:
draw a simple pie chart:
\snippet tutorials/extending-qml/chapter1-basics/piechart.cpp 0
\dots 0