Qt Documentation
Go to file
Olivier De Cannière d19a1e9b51 Dice: Ignore accelerometer reading until it's ready
The documentation for reading refers to QSensor::reading and it states
that readings are not available immediately after start() is called.
Instead, one should wait for the readingChanged signal. Until then,
reading is documented to be null, so just check for that.

This fixes 'Cannot read property x of null' warnings.

Fixes: QTBUG-140395
Fixes: QTBUG-140385
Pick-to: 6.10
Change-Id: Ibb36e1d8387628eea333cb6d0537dea25f3980b6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2025-09-23 13:00:07 +02:00
LICENSES Add QtGraphs demo with CSV-reader 2025-08-14 08:28:02 +03:00
coin Remove unnecessary comment 2025-03-05 16:06:00 +01:00
dist Remove year from Qt Copyright in REUSE.toml 2025-07-14 09:47:07 +02:00
doc Doc: Add info on how to install debug libraries 2025-09-22 14:29:47 +03:00
examples Dice: Ignore accelerometer reading until it's ready 2025-09-23 13:00:07 +02:00
tests Change license for tests file 2024-04-04 07:32:33 +00:00
.cmake.conf CMake: Mark qtdoc examples as warnings clean 2025-08-18 15:29:43 +02:00
.gitattributes Update the git-archive export options 2012-09-03 19:51:51 +02:00
.gitignore Don't gitignore /doc/ 2023-06-22 16:18:45 +02:00
.gitreview Add .gitreview file 2025-03-24 16:07:49 +01:00
.tag Update the git-archive export options 2012-09-03 19:51:51 +02:00
CMakeLists.txt Move `qt_internal_project_setup` as early as possible 2025-05-30 15:22:03 +02:00
README.md Update top-level README 2025-08-06 08:25:01 +02:00
REUSE.toml Doc: Remove the old sidebar configuration file 2025-07-16 13:49:51 +03:00
dependencies.yaml Update dependencies on 'dev' in qt/qtdoc 2025-09-20 20:01:15 +00:00
licenseRule.json Doc: Remove the old sidebar configuration file 2025-07-16 13:49:51 +03:00

README.md

Qt Documentation

This repository contains the main Qt Reference Documentation, including overviews, Qt topics, examples, and tutorials not specific to any Qt module.

Documentation Projects

The documentation is organized into several documentation projects:

QtDoc

The main Qt Reference Documentation.

Project File: doc/config/qtdoc.qdocconf

Sources: doc/src/ (excluding cmake/ and platformintegration/ subdirectories)

Content:

  • Getting started guides and tutorials
  • Platform-specific documentation (Android, iOS, macOS, Windows, etc.)
  • Qt modules overview and reference
  • Development tools and utilities
  • Legal information and licenses
  • Examples and demos

CMake Targets: docs_QtDoc or html_docs_QtDoc

This project also contains the documentation for examples and tutorials in the examples/ directory.

QtCMake

Documentation for using Qt with CMake.

Project File: doc/src/cmake/qtcmake.qdocconf

Sources: doc/src/cmake

Content:

  • CMake manual and getting started guide
  • Qt CMake API reference
  • Build system configuration

CMake Targets: docs_qtcmake or html_docs_qtcmake.

QtPlatformIntegration

Documentation for integrating Qt with native platforms.

Project File: doc/src/platformintegration/qtplatformintegration.qdocconf

Sources: doc/src/platformintegration/

Content:

  • Qt Platform Abstraction (QPA)
  • Platform-specific integration guides
  • Native API interaction

CMake Targets: docs_QtPlatformIntegration or html_docs_QtPlatformIntegration.

Building Documentation

The main QtDoc documentation contains links to pages from other documentation projects (QtCore, QtQuick, etc.). Similarly, these projects link back to pages and topics in QtDoc.

Therefore, the most reliable approach is to build Qt documentation as part of a complete Qt build that includes all supported Qt modules. Refer to the README.md in qt5.git for detailed instructions.

Building Examples

Build the examples by opening the CMakeLists.txt files in the respective example directory.

Writing and Improving Qt Documentation

Qt Documentation is written in QDoc syntax. See https://doc.qt.io/qt-6/qdoc-index.html for the QDoc manual.

For more information about Qt's documentation, refer to the Qt Project wiki: https://wiki.qt.io/Qt_Writing_Guidelines

Writing and Improving Qt Examples

See https://contribute.qt-project.org/quips/13 for some guidance around the Qt examples.