6.0.0-rc4Source

Nt Core C++ Classes

Core non-graphical classes: objects, signals, events, strings and containers.

Using the Module

target_link_libraries(app PRIVATE Nt::Core)

Nt Core provides the classes every Nt program builds on. Headers keep Qt's names, so #include <QObject> and #include <QtCore/QTimer> both work.

See Signals and Slots for how objects communicate.

Classes

QAbstractAnimationThe QAbstractAnimation class is the base of all animations.
QAbstractEventDispatcherThe QAbstractEventDispatcher class provides an interface to manage Nt's event queue.
QAbstractEventDispatcher::TimerInfoThe TimerInfo struct describes a timer that is registered with an event dispatcher.
QAbstractItemModelThe QAbstractItemModel class provides the abstract interface for item model classes.
QAbstractListModelThe QAbstractListModel class provides an abstract model that can be subclassed to create one-dimensional list models.
QAbstractProxyModelThe QAbstractProxyModel class provides a base class for proxy item models that can do sorting, filtering or other data processing tasks.
QAbstractTableModelThe QAbstractTableModel class provides an abstract model that can be subclassed to create table models.
QAdoptSharedDataTagThe QAdoptSharedDataTag struct tags a QSharedDataPointer constructor that adopts data.
QAnimationGroupThe QAnimationGroup class is an abstract base class for groups of animations.
QAnyStringViewThe QAnyStringView class provides a unified view on Latin-1, UTF-8 or UTF-16 strings.
QApplicationStaticThe QApplicationStatic class holds a global object that lives as long as the application object.
QArgumentThe QArgument class is a template helper that holds an argument of type T.
QAssocConstIteratorThe QAssocConstIterator class provides the Java-style const iterator behind QMapIterator, QMultiMapIterator and QHashIterator.
QAssocMutableIteratorThe QAssocMutableIterator class provides the Java-style non-const iterator behind QMutableMapIterator, QMutableMultiMapIterator and QMutableHashIterator.
QAssociativeIterableThe QAssociativeIterable class is an iterable interface for an associative container in a QVariant.
QAssociativeIterable::const_iteratorThe const_iterator class is a read-only iterator over a QAssociativeIterable.
QAtomicIntegerThe QAtomicInteger class provides platform-independent atomic operations on integers.
QAtomicPointerThe QAtomicPointer class is a template class that provides platform-independent atomic operations on pointers.
QAtomicScopedValueRollbackThe QAtomicScopedValueRollback class resets an atomic variable to its previous value on destruction.
QBEIntegerThe QBEInteger class provides an integer that is stored in big-endian byte order.
QBasicTimerThe QBasicTimer class provides timer events for objects.
QBitArrayThe QBitArray class provides an array of bits.
QBitRefThe QBitRef class is an internal helper for the QBitArray class.
QBufferThe QBuffer class provides a QIODevice interface for a QByteArray.
QByteArrayThe QByteArray class provides an array of bytes.
QByteArray::FromBase64ResultThe QByteArray::FromBase64Result class holds the result of QByteArray::fromBase64Encoding().
QByteArrayListThe QByteArrayList class provides a list of byte arrays.
QByteArrayMatcherThe QByteArrayMatcher class holds a sequence of bytes that can be quickly matched in a byte array.
QByteArrayViewThe QByteArrayView class provides a view on an array of bytes with a read-only subset of the QByteArray API.
QCacheThe QCache class is a template class that provides a cache.
QCalendarThe QCalendar class describes calendar systems.
QCalendar::YearMonthDayThe YearMonthDay class holds the year, month and day of a date in a calendar.
QCborArrayThe QCborArray class is used to hold an array of CBOR elements.
QCborArray::ConstIteratorThe ConstIterator class is the iterator of QCborArray that reads elements.
QCborArray::IteratorThe Iterator class is the iterator of QCborArray that can change elements.
QCborErrorThe QCborError class holds the error condition found while parsing or validating a CBOR stream.
QCborMapThe QCborMap class is used to hold an associative container representable in CBOR.
QCborMap::ConstIteratorThe ConstIterator class is the iterator of QCborMap that reads pairs.
QCborMap::IteratorThe Iterator class is the iterator of QCborMap that can change values.
QCborParserErrorThe QCborParserError class is used by QCborValue to report a parsing error.
QCborStreamReaderThe QCborStreamReader class is a simple CBOR stream decoder, operating on either a QByteArray or a QIODevice.
QCborStreamReader::StringResultThe StringResult class holds a chunk of a string that QCborStreamReader read.
QCborStreamWriterThe QCborStreamWriter class is a simple CBOR encoder operating on a one-way stream.
QCborValueThe QCborValue class encapsulates a value in CBOR.
QCborValueConstRefThe QCborValueConstRef class is a reference to a value in a QCborArray or QCborMap that cannot be changed.
QCborValueRefThe QCborValueRef class is a reference to a value in a QCborArray or QCborMap.
QCharThe QChar class provides a 16-bit Unicode code unit.
QChildEventThe QChildEvent class contains event parameters for child object events.
QChronoTimerThe QChronoTimer class provides repetitive and single-shot timers with intervals given as std::chrono durations.
QCollatorThe QCollator class compares strings according to a localized collation algorithm.
QCollatorSortKeyThe QCollatorSortKey class can be used to speed up string collation.
QCommandLineOptionThe QCommandLineOption class defines a possible command-line option.
QCommandLineParserThe QCommandLineParser class provides a means for handling the command line options.
QConcatenateTablesProxyModelThe QConcatenateTablesProxyModel class proxies multiple source models, concatenating their rows.
QContiguousCacheThe QContiguousCache class is a template class that provides an efficient cache for a contiguous range of indexes.
QCoreApplicationThe QCoreApplication class provides an event loop for console applications.
QCryptographicHashThe QCryptographicHash class provides a way to generate cryptographic hashes.
QDataStreamThe QDataStream class provides serialization of binary data to a QIODevice.
QDateThe QDate class provides date functions.
QDateTimeThe QDateTime class provides date and time functions.
QDeadlineTimerThe QDeadlineTimer class marks a deadline in the future.
QDebugThe QDebug class provides an output stream for debugging information.
QDebugStateSaverThe QDebugStateSaver class saves and restores the formatting state of a QDebug stream.
QDirThe QDir class provides access to directory structures and their contents.
QDirIteratorThe QDirIterator class provides an iterator for directory entries.
QDirListingThe QDirListing class provides an STL-style iterator for directory entries.
QDirListing::DirEntryThe DirEntry class describes one entry of a QDirListing.
QDirListing::const_iteratorThe const_iterator class is the input iterator of a QDirListing.
QDirListing::sentinelThe sentinel class marks the end of a QDirListing.
QDynamicPropertyChangeEventThe QDynamicPropertyChangeEvent class contains event parameters for dynamic property changes.
QEasingCurveThe QEasingCurve class provides easing curves for controlling animation.
QElapsedTimerThe QElapsedTimer class provides a fast way to calculate elapsed times.
QEnableSharedFromThisThe QEnableSharedFromThis class lets an object create shared pointers to itself.
QEventThe QEvent class is the base class of all event classes.
QEventLoopThe QEventLoop class provides a means of entering and leaving an event loop.
QEventLoopLockerThe QEventLoopLocker class provides a means to quit an event loop when it is no longer needed.
QExceptionThe QException class provides a base class for exceptions that can transferred across threads.
QExplicitlySharedDataPointerThe QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object.
QFileThe QFile class provides an interface for reading from and writing to files.
QFileDeviceThe QFileDevice class is the base class of devices that read and write files.
QFileInfoThe QFileInfo class provides information about a file's name, location, type and metadata.
QFileSelectorThe QFileSelector class provides a convenient way of selecting file variants.
QFileSystemWatcherThe QFileSystemWatcher class provides an interface for monitoring files and directories for modifications.
QFlagThe QFlag class is a helper data type for QFlags.
QFlagsThe QFlags class stores OR combinations of enum values in a type-safe way.
QFutureThe QFuture class represents the result of an asynchronous computation.
QFutureInterfaceThe QFutureInterface class allows the compution to report its state and results to a QFuture.
QFutureInterfaceBaseThe QFutureInterfaceBase class is the non-template base of QFutureInterface.
QFutureSynchronizerThe QFutureSynchronizer class is a convenience class that simplifies QFuture synchronization.
QFutureWatcherThe QFutureWatcher class allows monitoring a QFuture using signals and slots.
QFutureWatcherBaseThe QFutureWatcherBase class is the base of QFutureWatcher, and holds its signals and slots.
QGenericArgumentThe QGenericArgument class is an internal helper class for marshalling arguments.
QGenericReturnArgumentThe QGenericReturnArgument class is an internal helper class for marshalling return values.
QGlobalStaticThe QGlobalStatic class is used to implement a global static object.
QHashThe QHash class is a template class that provides a hash-table-based dictionary.
QHash::TryEmplaceResultThe QHash::TryEmplaceResult struct is the result of QHash::tryEmplace() and its relatives.
QIODeviceThe QIODevice class is the abstract base class of all I/O devices.
QIODeviceBaseThe QIODeviceBase class provides the open mode flags shared by I/O devices.
QIdentityProxyModelThe QIdentityProxyModel class proxies its source model unmodified.
QItemSelectionThe QItemSelection class manages information about selected items in a model.
QItemSelectionModelThe QItemSelectionModel class keeps track of a view's selected items.
QItemSelectionRangeThe QItemSelectionRange class manages information about a range of selected items in a model.
QJsonArrayThe QJsonArray class encapsulates a JSON array.
QJsonArray::const_iteratorThe QJsonArray::const_iterator class is an STL-style const iterator for QJsonArray.
QJsonArray::iteratorThe QJsonArray::iterator class is an STL-style non-const iterator for QJsonArray.
QJsonDocumentThe QJsonDocument class provides a way to read and write JSON documents.
QJsonObjectThe QJsonObject class encapsulates a JSON object.
QJsonObject::const_iteratorThe QJsonObject::const_iterator class is an STL-style const iterator for QJsonObject.
QJsonObject::iteratorThe QJsonObject::iterator class is an STL-style non-const iterator for QJsonObject.
QJsonParseErrorThe QJsonParseError struct is used to report errors during JSON parsing.
QJsonValueThe QJsonValue class encapsulates a value in JSON.
QJsonValueConstRefThe QJsonValueConstRef class is a read-only reference to a value inside an array or object.
QJsonValueRefThe QJsonValueRef class is a helper class for QJsonArray and QJsonObject.
QKeyValueIteratorThe QKeyValueIterator class is an iterator over the key and value pairs of an associative container.
QKeyValueIterator::pointer
QLEIntegerThe QLEInteger class provides an integer that is stored in little-endian byte order.
QLatin1CharThe QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QLatin1StringMatcherThe QLatin1StringMatcher class searches for a Latin-1 pattern in Latin-1 and UTF-16 text.
QLatin1StringViewThe QLatin1StringView class provides a thin wrapper around a US-ASCII/Latin-1 encoded string literal.
QLibraryThe QLibrary class loads shared libraries at runtime.
QLibraryInfoThe QLibraryInfo class reports how the Nt library was built.
QLineThe QLine class provides a two-dimensional vector using integer precision.
QLineFThe QLineF class provides a two-dimensional vector using floating point precision.
QListThe QList class is a template class that provides a dynamic array.
QListIteratorThe QListIterator class provides a Java-style const iterator for QList.
QLocaleThe QLocale class converts between numbers, dates and their string representations in various languages.
QLockFileThe QLockFile class provides locking between processes using a file.
QLoggingCategoryThe QLoggingCategory class represents a category, or 'area', in the logging infrastructure.
QMapThe QMap class is a template class that provides an ordered associative container.
QMarginsThe QMargins class defines the four margins of a rectangle.
QMarginsFThe QMarginsF class defines the four margins of a rectangle using floating point precision.
QMessageAuthenticationCodeThe QMessageAuthenticationCode class provides a way to generate hash-based message authentication codes.
QMessageLogContextThe QMessageLogContext class carries information about the origin of a log message.
QMessageLoggerThe QMessageLogger class generates log messages.
QMetaClassInfoThe QMetaClassInfo class provides additional information about a class.
QMetaEnumThe QMetaEnum class provides meta-data about an enumerator.
QMetaMethodThe QMetaMethod class provides meta-data about a member function.
QMetaObjectThe QMetaObject class contains meta-information about Nt objects.
QMetaObject::ConnectionThe Connection class represents a handle to a signal-slot connection.
QMetaPropertyThe QMetaProperty class provides meta-data about a property.
QMetaTypeThe QMetaType class manages named types in the meta-object system.
QMetaTypeIdThe QMetaTypeId class is the trait that Q_DECLARE_METATYPE() specializes.
QMimeDataThe QMimeData class provides a container for data that records information about its MIME type.
QMimeDatabaseThe QMimeDatabase class maintains a database of MIME types.
QMimeTypeThe QMimeType class describes types of file or data, represented by a MIME type string.
QModelIndexThe QModelIndex class is used to locate data in a data model.
QMultiHashThe QMultiHash class is a template class that provides a hash-table-based multi-valued dictionary.
QMultiMapThe QMultiMap class is a template class that provides an ordered associative container with multiple values per key.
QMutableListIteratorThe QMutableListIterator class provides a Java-style non-const iterator for QList.
QMutableSetIteratorThe QMutableSetIterator class provides a Java-style non-const iterator for QSet.
QMutexThe QMutex class provides access serialization between threads.
QMutexLockerThe QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes.
QNoDebugThe QNoDebug class is a stream that discards everything written to it.
QObjectThe QObject class is the base class of all Nt objects that use signals and slots.
QObjectCleanupHandlerThe QObjectCleanupHandler class watches the lifetime of multiple QObjects.
QOperatingSystemVersionThe QOperatingSystemVersion class provides information about the operating system version.
QOverloadThe QOverload struct helps to select an overloaded member function.
QParallelAnimationGroupThe QParallelAnimationGroup class provides a parallel group of animations.
QPartialOrderingThe QPartialOrdering class represents the result of a comparison that allows for unordered results.
QPauseAnimationThe QPauseAnimation class provides a pause for QSequentialAnimationGroup.
QPersistentModelIndexThe QPersistentModelIndex class is used to locate data in a data model, and stays valid when the model changes.
QPointThe QPoint class defines a point in the plane using integer precision.
QPointFThe QPointF class defines a point in the plane using floating point precision.
QPointerThe QPointer class is a template class that provides guarded pointers to QObject.
QProcessThe QProcess class is used to start external programs and to communicate with them.
QProcessEnvironmentThe QProcessEnvironment class holds the environment variables that can be passed to a program.
QPromiseThe QPromise class provides a way to store computation results to be accessed by QFuture.
QPropertyAnimationThe QPropertyAnimation class animates Qt properties.
QQueueThe QQueue class is a template class that provides a queue.
QRandomGeneratorThe QRandomGenerator class allows one to obtain random values from a high-quality Random Number Generator.
QRandomGenerator64The QRandomGenerator64 class allows one to obtain 64-bit random values from a high-quality Random Number Generator.
QReadLockerThe QReadLocker class is a convenience class that simplifies locking and unlocking read-write locks for read access.
QReadWriteLockThe QReadWriteLock class provides read-write locking.
QRectThe QRect class defines a rectangle in the plane using integer precision.
QRectFThe QRectF class defines a rectangle in the plane using floating point precision.
QRecursiveMutexThe QRecursiveMutex class provides access serialization between threads.
QRegularExpressionThe QRegularExpression class provides pattern matching using regular expressions.
QRegularExpressionMatchThe QRegularExpressionMatch class provides the results of matching a QRegularExpression against a string.
QRegularExpressionMatchIteratorThe QRegularExpressionMatchIterator class provides an iterator on the results of a global match of a QRegularExpression against a string.
QRegularExpressionMatchIterator::RangeIteratorThe RangeIterator class lets a range-based for loop walk over the matches.
QRegularExpressionMatchIterator::SentinelThe Sentinel class marks the end of the matches in a range-based for loop.
QResourceThe QResource class provides an interface for reading directly from resources.
QReturnArgumentThe QReturnArgument class is a template helper that holds a return value of type T.
QRunnableThe QRunnable class is the base class for all runnable objects.
QSaveFileThe QSaveFile class provides an interface for safely writing to files.
QScopeGuardThe QScopeGuard class calls a function when it goes out of scope.
QScopedArrayPointerThe QScopedArrayPointer class stores a pointer to a dynamically allocated array and deletes it on destruction.
QScopedPointerThe QScopedPointer class stores a pointer to a dynamically allocated object and deletes it on destruction.
QScopedPointerArrayDeleterThe QScopedPointerArrayDeleter struct is the cleanup handler of QScopedArrayPointer.
QScopedPointerDeleterThe QScopedPointerDeleter struct is the default cleanup handler of QScopedPointer.
QScopedValueRollbackThe QScopedValueRollback class resets a variable to its previous value on destruction.
QSemaphoreThe QSemaphore class provides a general counting semaphore.
QSemaphoreReleaserThe QSemaphoreReleaser class provides exception-safe deferral of a QSemaphore::release() call.
QSequentialAnimationGroupThe QSequentialAnimationGroup class provides a sequential group of animations.
QSequentialIterableThe QSequentialIterable class is an iterable interface for a container in a QVariant.
QSequentialIterable::const_iteratorThe const_iterator class is a read-only iterator over a QSequentialIterable.
QSetThe QSet class is a template class that provides a hash-table-based set.
QSetIteratorThe QSetIterator class provides a Java-style const iterator for QSet.
QSettingsThe QSettings class provides persistent platform-independent application settings.
QSharedDataThe QSharedData class is a base class for shared data objects.
QSharedDataPointerThe QSharedDataPointer class represents a pointer to an implicitly shared object.
QSharedMemoryThe QSharedMemory class provides access to a shared memory segment.
QSharedPointerThe QSharedPointer class holds a strong reference to a shared pointer.
QSignalBlockerThe QSignalBlocker class exception-safely wraps QObject::blockSignals().
QSignalMapperThe QSignalMapper class bundles signals from identifiable senders.
QSizeThe QSize class defines the size of a two-dimensional object using integer point precision.
QSizeFThe QSizeF class defines the size of a two-dimensional object using floating point precision.
QSocketDescriptorThe QSocketDescriptor class wraps a native socket or file descriptor.
QSocketNotifierThe QSocketNotifier class provides a way to watch activity on a file descriptor.
QSortFilterProxyModelThe QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view.
QSpanThe QSpan class provides a non-owning view of a contiguous sequence of elements.
QStackThe QStack class is a template class that provides a stack.
QStandardPathsThe QStandardPaths class provides methods for accessing standard paths.
QStaticByteArrayMatcherThe QStaticByteArrayMatcher class is a QByteArrayMatcher whose pattern is known when the program is compiled.
QStorageInfoThe QStorageInfo class provides information about currently mounted storage and drives.
QStringThe QString class provides a Unicode character string.
QStringConverterThe QStringConverter class provides a base class for encoding and decoding text.
QStringConverterBaseThe QStringConverterBase class provides the flags shared by the string converters.
QStringDecoderThe QStringDecoder class decodes bytes into a QString.
QStringEncoderThe QStringEncoder class encodes QString data into bytes.
QStringListThe QStringList class provides a list of strings.
QStringListModelThe QStringListModel class provides a model that supplies strings to views.
QStringMatcherThe QStringMatcher class holds a sequence of characters that can be quickly matched in a Unicode string.
QStringTokenizerThe QStringTokenizer class splits strings into tokens along given separators.
QStringTokenizer::iteratorThe iterator class iterates over the tokens of a QStringTokenizer.
QStringTokenizer::sentinelThe sentinel class marks the end of a QStringTokenizer.
QStringViewThe QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QString API.
QSysInfoThe QSysInfo class provides information about the system.
QSystemSemaphoreThe QSystemSemaphore class provides a general counting system semaphore.
QTemplatedMetaMethodReturnArgumentThe QTemplatedMetaMethodReturnArgument class refers to the variable that receives the result of QMetaObject::invokeMethod().
QTemporaryDirThe QTemporaryDir class creates a unique directory for temporary use.
QTemporaryFileThe QTemporaryFile class is an I/O device that operates on temporary files.
QTextBoundaryFinderThe QTextBoundaryFinder class provides a way of finding Unicode text boundaries in a string.
QTextStreamThe QTextStream class provides a convenient interface for reading and writing text.
QTextStreamManipulatorThe QTextStreamManipulator class holds a deferred QTextStream setter call.
QThreadThe QThread class provides a platform-independent way to manage threads.
QThreadPoolThe QThreadPool class manages a collection of threads.
QThreadStorageThe QThreadStorage class provides per-thread data storage.
QTimeThe QTime class provides clock time functions.
QTimeLineThe QTimeLine class provides a timeline for controlling animations.
QTimeZoneThe QTimeZone class identifies how a time representation relates to UTC.
QTimeZone::OffsetDataThe OffsetData class describes the offsets of a zone at an instant.
QTimerThe QTimer class provides repetitive and single-shot timers.
QTimerEventThe QTimerEvent class contains parameters that describe a timer event.
QTranslatorThe QTranslator class provides internationalization support for text output.
QTransposeProxyModelThe QTransposeProxyModel class provides a proxy that swaps the rows and columns of its source model.
QTypeInfoThe QTypeInfo class describes how a type may be stored by a container.
QTypeRevisionThe QTypeRevision class contains a QML type revision.
QUnhandledExceptionThe QUnhandledException class represents an unhandled exception in a worker thread.
QUrlThe QUrl class parses, builds and resolves URLs.
QUrlQueryThe QUrlQuery class reads and builds the key-value pairs of a URL query.
QUtf8StringViewThe QUtf8StringView class provides a unified view on UTF-8 strings with a read-only subset of the QString API.
QUuidThe QUuid class stores a Universally Unique Identifier (UUID).
QUuid::Id128BytesThe QUuid::Id128Bytes union holds the 16 bytes of a UUID.
QVarLengthArrayThe QVarLengthArray class provides a low-level variable-length array.
QVariantThe QVariant class acts like a union for the most common Nt data types.
QVariantAnimationThe QVariantAnimation class provides a base class for animations.
QVersionNumberThe QVersionNumber class contains a version number with an arbitrary number of segments.
QWaitConditionThe QWaitCondition class provides a condition variable for synchronizing threads.
QWeakPointerThe QWeakPointer class holds a weak reference to a shared pointer.
QWriteLockerThe QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks for write access.
QXmlStreamAttributeThe QXmlStreamAttribute class represents a single XML attribute.
QXmlStreamAttributesThe QXmlStreamAttributes class represents a vector of QXmlStreamAttribute.
QXmlStreamEntityDeclarationThe QXmlStreamEntityDeclaration class represents a DTD entity declaration.
QXmlStreamEntityResolverThe QXmlStreamEntityResolver class provides an entity resolver for a QXmlStreamReader.
QXmlStreamNamespaceDeclarationThe QXmlStreamNamespaceDeclaration class represents a namespace declaration.
QXmlStreamNotationDeclarationThe QXmlStreamNotationDeclaration class represents a DTD notation declaration.
QXmlStreamReaderThe QXmlStreamReader class provides a fast parser for reading well-formed XML.
QXmlStreamWriterThe QXmlStreamWriter class provides an XML writer with a simple streaming API.
QtThe Qt namespace contains miscellaneous identifiers used throughout Nt.
QtFutureThe QtFuture namespace holds helpers for QFuture, such as QtFuture::Launch.
QtFuture::WhenAnyResultThe WhenAnyResult struct is the result of whenAny() on a range of futures.
qfloat16The qfloat16 class provides 16-bit floating point support.