QDomText(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QDomText πŸ’–

okay bestie, welcome to the qdomtext page β€” it's the one about text data in your parsed XML document, and yes it's giving ✨ Qt 3 era ✨ but we're gonna make it make sense.


🌸 NAME 🌸

QDomText β€” literally just represents text data in the parsed XML document, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so first the lil heads-up that matters:

All the functions in this class are reentrant when Qt is built with thread support. periodt πŸ”₯
#include <qdom.h>

Inherits QDomCharacterData.

Inherited by QDomCDATASection.

✨ Public Members ✨

  • QDomText ()
  • QDomText ( const QDomText & x )
  • QDomText & operator= ( const QDomText & x )
  • ~QDomText ()
  • QDomText splitText ( int offset )
  • virtual QDomNode::NodeType nodeType () const
  • virtual bool isText () const

πŸŽ€ DESCRIPTION πŸŽ€

The QDomText class represents text data in the parsed XML document. that's it, that's the whole vibe 🫢

You can split the text in a QDomText object over two QDomText objecs with splitText(). (yes bestie, the original says "objecs" and I'm keeping it, it's iconic πŸ’€)

For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. For a more general introduction of the DOM implementation see the QDomDocument documentation.

See also XML.


πŸ‘‘ MEMBER FUNCTION DOCUMENTATION πŸ‘‘

QDomText::QDomText ()

Constructs an empty QDomText object. a whole nothing-burger, lowkey πŸ”

To construct a QDomText with content, use QDomDocument::createTextNode().


QDomText::QDomText ( const QDomText & x )

Constructs a copy of x.

The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode().

so like, they're holding hands, not twinning fr fr 😭


QDomText::~QDomText ()

Destroys the object and frees its resources. bye girl πŸ‘‹πŸ’œ


bool QDomText::isText () const [virtual]

Returns TRUE.

Reimplemented from QDomNode.

like yes obviously she's text, main character energy πŸ’…


QDomNode::NodeType QDomText::nodeType () const [virtual]

Returns TextNode.

Reimplemented from QDomCharacterData.

Reimplemented in QDomCDATASection.


QDomText & QDomText::operator= ( const QDomText & x )

Assigns x to this DOM text.

The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode().

(same warning as the copy ctor, bestie, they're a matching set πŸŽ€)


QDomText QDomText::splitText ( int offset )

Splits this DOM text object into two QDomText objects. This object keeps its first offset characters and the second (newly created) object is inserted into the document tree after this object with the remaining characters.

The function returns the newly created object.

See also QDomNode::normalize().

like a glow-up split, one girl becomes two 🌈✨


πŸ’€ SEE ALSO πŸ’€


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.


🧚 AUTHOR 🧚

Generated automatically from the source code. (no human author to stan, sorry bestie πŸ™ˆ)


πŸ“ BUGS πŸ“

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. 🫢

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qdomtext.3qt) and the Qt version (3.3.8).


okay that's the whole page bestie, you ate πŸ’– this was QDomText(3qt), brought to you by Trolltech AS, dated 2 February 2007 β€” and that's the sign-off, mwah 😘✨

πŸ“¦ where this page comes from