Commit Graph

5191 Commits

Author SHA1 Message Date
Sami Varanka 6b47b0356d Add QtGraphs demo with CSV-reader
The demo shows how to use an external third-party csv library with
QtGraphs.

Pick-to: 6.10
Task-number: QTBUG-122326
Change-Id: I08dc6c74953fde9dd35c9bf8540ea58234e567f1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2025-08-14 08:28:02 +03:00
Tero Heikkinen e0781dc6e4 Update supported platforms documentation
Task-number: QTBUG-137602
Pick-to: 6.9
Change-Id: I4a17ae885367977f6112da3f2ec08333f8df0827
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit df651ef001)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-13 10:02:48 +00:00
Christian Strømme ce28c23d5e WhatsNew610: Add entries for QtQuick3D and friends
Pick-to: 6.10
Change-Id: Id7928f3e762690e73bdc9268375c1c34437aeb5f
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2025-08-13 10:09:10 +02:00
Jan Arve Sæther 80ad1a997a WhatsNew 6.10: Add SearchField
Pick-to: 6.10
Change-Id: I679e0d34c9e739834511665b0a4ffd7f09a529a9
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2025-08-12 14:01:00 +02:00
Ulf Hermann 83930647e1 Whatsnew: Make Synchronizer a link
Pick-to: 6.10
Change-Id: I8ffdc765bb324dcee9ed3f1217a5738d1dacf115
Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Reviewed-by: Vladimir Minenko <vladimir.minenko@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2025-08-12 10:55:46 +02:00
Fabian Kosmale 78dc366da6 colorpalettteclient: Fix qmllint warnings
Most of the warnings were straightforward to fix: add missing ids to
lookups, remove an unused import.

There is one interesting case, though: The getCurrentUserImage function
in ColorView was referring "users", which does not exist in that file,
and is not one of its properties. The application however still worked.
That's due to it being found on the root context, as it exists as an id
defined in Main.qml.
It was however already passed down via properties to ColorView, so use
the property instead.
Amends 7a62659880

Pick-to: 6.10
Change-Id: I6f91dc45302f30d70d8a09b66d0add9b963fa6b2
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2025-08-11 17:48:16 +02:00
Nicholas Bennett 6519e4b0c3 Docs: Clarify when to use Qt Maintenance Tool
The online installer can only add modules to a new Qt install location.
Updated the wording from "you can use..." to "use" regarding the
Qt Maintenance tool.

Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I4986022ac3965728f3ddf483a7f656a5ff985100
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2025-08-11 12:33:10 +00:00
Øystein Heskestad d9eb7ff648 What's new in 6.10 for Qt HttpServer
Added new fields to QHttpServerConfiguration, and made
QHttpServerRequest copyable.

Pick-to: 6.10
Change-Id: I00751d227fcd28ae6033df2f9c2ce184abe7ee2c
Reviewed-by: Lena Biliaieva <lena.biliaieva@qt.io>
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
2025-08-08 17:06:50 +02:00
Edward Welbourne 65512fc654 Include the custom calendar backend as an example of plugin use
It counts in the low-level category, as we don't have a systematic
calendar plugin API for the high-level category.

Task-number: QTBUG-115200
Change-Id: If8a29095a7dcf3b3c815dc7d3e7fce35110fd309
Reviewed-by: Magdalena Stojek <magdalena.stojek@qt.io>
Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2025-08-08 12:53:45 +02:00
Olivier De Cannière 05104e501d Thermostat: Enforce qmllint warnings
The PropertyChanges warnings have to be disabled to keep supporting QDS
compatibility.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I727f58be7de6e94749a65f5cfca47ea032a7a5ef
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 11:10:38 +02:00
Olivier De Cannière 447db272f1 Thermostat: Use strict comparison operators
Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I3a40b23c7b7ec82ba3809df5af2ea459819c1053
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 11:10:36 +02:00
Olivier De Cannière d20caffc81 Thermostat: Remove unused imports
Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I9a4b108d1655006f0bd0dd2bb69142b86442b7c8
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 11:10:34 +02:00
Olivier De Cannière 94c88d46c5 Thermostat: Adapt to new model and general cleanup
The RoomsModel has changed in shape in the previous commit. This commit
adapts the rest of the app to it and performs general cleanup and
warning fixing.

-Remove dead code
-Qualify lookups
-Declare all properties injected into delegates as required and give
 them a proper type such as Room or list<Room> instead of var
-General dataflow and depencies fixing. Change aliases to required
 properties where required
-Make the min/max/avg temperature values in the stats view update
 dynamically
-Simplify logic for processing temperature, humidity, and energy
 statistics

Change-Id: I21d962e9d692578f00c4e2466aae8a40d12a7dcc
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2025-08-07 11:10:32 +02:00
Olivier De Cannière 147f78d7de Thermostat: Update RoomsModel
Change the model from a ListModel to a list<Room> where Room is a new
type containing all the information related to a room. This allows
making what is passed to various components and delegates clearer and
explicit.

The data of the model itself was also updated:
-The statistics for humidity, energy, and temperature for each room are
 now stored as simple list<int> or list<real>.
-Data series were regenerated to be more varied; many were identical or
 didn't fluctuate enough to visibly change dynamically in the UI.
-More rooms were made active from the start and especially the first one
 which allows for immediate interaction in the thermostat settings view
 without having to first activate the room.
-Background values for humidity and energy consumption were also made
 more varied instead of identical everywhere.

The rest of the example will be adapted to this new model in the next
commits.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I3ce48ccb14aa4cfdee2d0508427b26598ce5446a
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 11:10:30 +02:00
Olivier De Cannière 093cf9cbf4 Thermostat: Set ComponentBehavior to Bound where necessary
Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I9997ebf3e6ca8336b3fefc34a51d53237a401c5f
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 11:10:28 +02:00
Olivier De Cannière a5c5e09ab8 Thermostat: Replace Color.blend with custom rgbBlend
The Color singleton isn't exposed publicly yet and there is no way of
importing it without using an internal module. This generates runtime
warnings. Borrow the logic in a new function specific to the example.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: Iea5ecfc7276d79be4f60318953ef0468c6123e63
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2025-08-07 11:10:26 +02:00
Olivier De Cannière 97b4a68494 Thermostat: Wrap signal handlers in Connections
Raw functions and function calls are not allowed in .ui.qml files.

Most .qml files in the proejct are empty. Respect the trend by sometimes
moving functions inside the .ui.qml files.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I95db0ba473189183fa46ddba3b7eb1ce938e5326
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2025-08-07 11:10:23 +02:00
Fabian Kosmale 677229cb59 Coffee example: Fix slider synchronization
Use Synchronizer to synchronize different coffee
slider values with CoffeeConfig.

Set sugarAmount to 0 by default.

Change docs to reflect new implementation.

Fixes the synchronization issue with sugar value.

Pick-to: 6.10
Fixes: QTBUG-138676
Change-Id: Ic73066df3ab2a4281aaf885547f22d2a3bdf662d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-07 11:34:19 +03:00
Mate Barany 03507eda85 What's new in Qt Qml: Remove support for complex rows
Removed the support of manipulation of complex row structures
from QQmlTableModel.

Pick-to: 6.10
Change-Id: I8cae94a63d4174a6a4560b6913a0dd15b179506c
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2025-08-07 10:08:33 +02:00
Eskil Abrahamsen Blomfeldt 9438576ce4 Graphics 2D docs
This adds an overview of 2D graphics in Qt and how they compare
to each other. There are many tools for this in Qt and they all
have their place. This will hopefully help users navigate the
forest.

Pick-to: 6.10
Fixes: QTBUG-137101
Change-Id: I855c5db8f6f1efe34cfbeecd0d2e05703bc124da
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2025-08-07 10:08:33 +02:00
Olivier De Cannière 913aca0b95 Thermostat: Use preferred{With,Height} inside Layouts
Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: Ifff8fab0d60211390570726c648d17f4c2a58bed
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 09:07:19 +02:00
Olivier De Cannière 4e73f07849 Thermostat: Declare dependencies of the ThermostatContent module
This helps resolve ApplicationSettings and Constants which are used all
over.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I6b0beaba914f8400336ab3def8542f8520a46535
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 09:07:17 +02:00
Olivier De Cannière e462f2121e Thermostat: Fix qmllint warnings in the Thermostat module
Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: Icd26c71541106cc3a554aa8e62ecf240062f64b7
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 09:07:16 +02:00
Olivier De Cannière 30dc679c9a Thermostat: Use QtQuickControls.Basic
The example uses custom controls for its UI so we can safely use a
a style that the compiler can deal with.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I66bcad7a78e06ab9d3e28b4ba238fec42dd9c81b
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 09:07:14 +02:00
Olivier De Cannière 8324d68486 Thermostat: Clean up some CMake code
Make module dependencies explicit.

Task-number: QTBUG-138188
Pick-to: 6.10
Change-Id: I82f06e7195ba0f07ac66eed7f891146393ab8fb9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2025-08-07 09:07:12 +02:00
Qt Submodule Update Bot c3378f50f8 Update dependencies on 'dev' in qt/qtdoc
Change-Id: Idd32e3db7e5e4089d18a0d1b2e386ea57707b1ab
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-07 05:19:02 +00:00
Ali Kianian 8b0e290c3d CarConfigurator: Replace `fileURL` with `fileUrl` in FolderListModel
`fileURL` role has been changed to `fileUrl` in Qt 6.10

Task-number: QTBUG-138124
Pick-to: 6.10
Change-Id: I41d917ae65233a17ab724c449f9e04a2f8580459
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2025-08-06 14:26:16 +03:00
Safiyyah Moosa 8cb66ae1d6 Doc: Add missing wayland plugin info
This patch adds information to the Wayland and Qt docs. It adds a line to state
that the Wayland QPA plugin can be used.

Fixes: QTBUG-135377
Pick-to: 6.10 6.9
Change-Id: I7b4ea1a2dc419bc1b3aa573465fbd8610813ef3f
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2025-08-06 12:24:51 +02:00
Topi Reinio fcea1e1e87 Doc: Fix incorrect usage of \generatelist
The \generatelist command takes an optional argument
that affect how the members are listed, for example,
`classesbymodule` which creates an annotated list of
the classes in a named C++ module.

`groupsbymodule` is not recognized or documented. QDoc
falls back to generating a list of all members of a
group in this case. While the end result is correct,
this relies on an undocumented feature that is likely
to change and break.

Replace these instances with an explicit \annotatedlist
command that produces the same output.

Pick-to: 6.10
Task-number: QTBUG-138901
Change-Id: I9de11926187daca8d30bf63d6ef8cc7bcded1e0d
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2025-08-06 09:20:04 +00:00
Luca Di Sera 92df264d33 FX&MaterialShowroom: Fix [unqualified] warnings in ButtonTabs
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I8f7c0931389f2b41fd8720c34cba193d8db26c2f
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:59:55 +02:00
Luca Di Sera 159cbc42f6 FX&MaterialShowroom: Fix [unqualified] warnings in MouseScroll
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I45f8f53ef2ccecffd64248cc551dfef79439ea81
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:59:51 +02:00
Luca Di Sera a8b7fdcbd6 FX&MaterialShowroom: Fix access to implicitly available elements
Across the example there are many accesses to implicitly available elements.
That is, an element is declared in some file with a certain id, and then
other files use that id directly, to access those elements.

While the engine can handle this, qmllint cannot, as it cannot know that
those accesses will happen in a context where the referred to elements
with the referred to id are available as that can only be resolve at
runtime.
Thus, it produces a series of [unqualified] warnings for those accesses,
as it cannot make sense of them.

To fix the warning, and generally improve the style/readability of the
example, the pattern for those accesses was modified in a way that can
be understood by the tooling.

In particular, whenever a custom type wants to access an implicitly
available element, it now provides a required property to an element of
that type that will be filled-in at usage-site, where the previously
implicit element is available and can be explicitly bound.

The various accesses to the objects or its subparts were updated to use
the newly added required properties and the various usage site of the
relevant types were updated to ensure that those required properties are
bound to a relevant element.

In some cases, properties that were defined inline without a backing
type were being accessed on an implicitly accessed element.
One such example is in the case of certain `NumberAnimation`s elements
being defined in "Screen01.ui.qml", with an additional "phase" property
being defined inline and then accessed through an implicit reference to
that specific `NumberAnimation` instance.

Since this is done without specifying a type, qmllint cannot be induced
to know about the presence of the additional property, such that it
might fail to understand the access to it.
In those cases, a required property was added that is bound directly to
the additional subpart of the element instead of the element itself,
which allows qmllint to understand the provenance of the property and
validate the access.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I05ce940e7de45b1749010af67fce2ac571cf9ba6
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:59:47 +02:00
Luca Di Sera bd6c570fd2 FX&MaterialShowroom: Remove unused types from content
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I5ecc032e5a9155ca0356db886a9771fbbba465cb
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:59:42 +02:00
Luca Di Sera 57325f8949 FX&MaterialShowroom: Fix some [unqualified] warnings in Screen01
qmllint was reporting an unqualified access warning to `pinch` in a
connection based onPinchUpdated handler of a PinchArea element.

The `pinch` in the relevant function is intended to be the `PinchEvent`
that is passed to the handler, thus name the first parameter of the
function to mark the argument explicitly which in turn stops qmllint
from warning about it.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: Iffb0ca2c4ff9a64cb2be880788055146083be728
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:59:37 +02:00
Luca Di Sera 4e5eec8e1b FX&MaterialShowroom: Fix [unqualified] warnings in MouseRotatorAndWASD
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I72b51d83eacca2c7299b233cf6afafba9db7f927
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:14:16 +02:00
Luca Di Sera fd5921b158 FX&MaterialShowroom: Remove unused and possibly confusing id
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: If842245add8384d646298285a318bef6014f585f
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:14:03 +02:00
Luca Di Sera 0d9d127870 FX&MaterialShowroom: Fix [incompatible-type] warnings in content
Many of the ui.qml files were assigning single objects to properties
that expects a list of those objects.

For example assigning a single particle object to the `particles`
members of a `Wander3d`, with qmllint producing warnings about the
incompatibility of the binding.

To fix the warnings, change all of those patterns to wrap the single
object into an array.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I371da8e70faa25bf009186c16fa722457eb372c5
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:13:56 +02:00
Luca Di Sera 236b612d0d FX&MaterialShowroom: Set the ComponentBehavior to bound where necessary
Some of the (.ui).qml files access some elements by qualifying them with
the identifier of an outer components.

This kind of access requires the ComponentBehavior to be set to Bound,
with qmllint warning about it when this is not the case.

Thus, to fix the warnings, set the ComponentBehavior to Bound in those
files that make use of the relevant access pattern.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: Id39e07e25769c063b5a41d09632584b5c74a5fd8
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:13:49 +02:00
Luca Di Sera 2992e8791f FX&MaterialShowroom: Fix qmllint [import] warning in content
The various ui and qml files under content depends on some additional
custom QML modules that are part of the example, living under the
`imports` directory.

The module for those files does not link to those custom modules, such
that qmllint will produce a warning when they are imported.

Add a direct dependency, based on CMake targets, to the custom
`PocketDemo` and `CB_MaterialBundle` QWL modules to ensure that qmllint finds
them, thus fixing the warnings.

The `add_subdirectory` calls in the main project description were
reordered to ensure that the dependencies targets are available when we
declare a dependency to them.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I743524dafec41923664fe45decd946237b6c21ba
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2025-08-06 10:13:43 +02:00
Luca Di Sera 6c1be3c02d FX&MaterialShowroom: Fix [unused-imports] warnings the various ui files
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I697fc650b90c18ab3ad916ec6884c8d8366230ca
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:13:35 +02:00
Luca Di Sera f77dbcaed6 FX&MaterialShowroom: Remove unused types from QtQuick.Studio.Components
The examples uses its own version of some of the designer studio
components that provides various QML types, most of which seems to be
unused in the rest of the project, and that further depend on
dependencies that aren't currently provided by the project itself or
produce various qmllint warnings.

Hence, remove the files defining those types.
Further adjust the CMakeLists.txt file and qmldir file for the
QtQuick.Studio.Components module to avoid referring to the now removed
files.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I88d1e0e7bfa63a70d46c97e970e243a1883da84b
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 10:13:28 +02:00
Luca Di Sera 79d130dbcf FX&MaterialShowroom: Remove unused types from PocketDemo
The examples uses an internal QML module, `PocketDemo`, that provides
various QML types, most of which seems to be unused in the rest of the
project, and that further depend on dependencies that aren't currently
provided by the project itself.

Hence, remove the files defining those types.
Further adjust the CMakeLists.txt file and qmldir file for the
PocketDemo module to avoid referring to the now removed files.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I4f76879f0c39652ccae4fac1e828bbf38c3a3c33
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 09:35:50 +02:00
Luca Di Sera f7245ab578 FX&MaterialShowroom: Fix [unqualified] warnings in PocketDemo
Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I57205c870b34d08be8b40c6080d0fedbcc055a6f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 09:35:45 +02:00
Luca Di Sera eab7334e03 FX&MaterialShowroom: Access font trough the Application singleton
The `Qt` singleton has an `application` member that is not guaranteed to
be a `QQuickApplication`, and thus might not always have a `font`
member.

Hence, qqmlint can produce a [missing-property] warning when, for
example, an access like `Qt.application.font` is performed.

To avoid the issue, the `Application` singleton that QtQuick exposes can
be used for the same purpose, while ensuring that the singleton is
recognized as a `QQuickApplication` and has a `font` member always
available.

Hence, ensure that accesses to the `font` property always pass by the
`Application` singleton instead of the `application` member of the `Qt`
singleton.

Pick-to: 6.10
Task-number: QTBUG-138170
Change-Id: I59a1c8307e7e8f5df6a65ba810eebcf2d8e37bba
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2025-08-06 09:35:41 +02:00
Luca Di Sera c86492ad4b MediaPlayerApp: Add a configuration file for qmllint
The example is currently in a state where qmllint produces no warning,
and should generally be kept in such a state.

Thus, add a configuration file that sets the warning limit to "0", such
that running the all_qmllint target for the example will fail if any
warning is produced, with the additional strictness hopefully helping
keeping the example warnings-free.

Pick-to: 6.10
Fixes: QTBUG-138175
Change-Id: If9adb0f4929fdb99272883ceccca9479bf640204
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 09:35:36 +02:00
Luca Di Sera 529d943a45 MediaPlayerApp: Fix [unqualified] warning in the MediaPlayer module
The `MediaPlayerApp` example has has a `MediaPlayer` QML module whose
`Main.qml` file defines a function, `openFile`, in the scope of the root
element, that is later used by a child element in a binding.

qmllint produces an [unqualified] access warning for this usage.

To avoid the warning being produced, the usage of the `openFile`
function in the child element was qualified with the id of the root
element.

Task-number: QTBUG-138175
Pick-to: 6.10
Change-Id: I11f8c02fb2c45c178f42770cb06badb3fb73c3e1
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 09:35:32 +02:00
Luca Di Sera 262bc723bf MediaPlayerApp: Fix qmllint [import] warning
`MediaPlayerApp` depends on some additional custom QML modules that are
positioned such that they are siblings to each other.

By default they would not appear under the normal QML search path, such
that qmllint was failing to find them producing a series of [import]
warnings.

Add a direct dependency, based on CMake targets, to the custom
`Config` and `MediaControls` QWL modules to ensure that qmllint finds
them, thus fixing the warnings.

The `add_subdirectory` calls in the main `CmakeLists.txt` file of the
project were re-ordered to ensure that the dependencies targets are
known at the time we add them as a dependency.

Task-number: QTBUG-138175
Pick-to: 6.10
Change-Id: I5ce43606ae0458a572b97b6afb218aafa8ef87b8
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-08-06 09:35:28 +02:00
Luca Di Sera a2a8d24d50 MediaPlayerApp: Fix [unqualified] warnings in MediaControls
The `MediaControls` QML module that is part of the `MediaPlayerApp`
example, imports a custom QML module, `Config`, that is defined in a
sibling directory.

The `Config` module exports a singleton and, when the singleton is
accessed, qmllint produces a series of [unqualified] access warnings.

Add a direct dependency to the custom `Config` QWL module to
ensure that qmllint recognizes the singleton, thus fixing the warnings.

To allow for the use of the modern, `TARGET` based, dependency
declaration method, introduced in 6.8, the `find_package` and
`qt_standard_project_setup` calls for the project were modified to
search and setup for the 6.8 version.

The `add_subdirectory` calls in the main `CmakeLists.txt` file of the
project were re-ordered to ensure that the `Config` target is known at
the time we add it as a dependency.

Task-number: QTBUG-138175
Pick-to: 6.10
Change-Id: I33cbbdd179d701a36bb5c4f38deca1102aa47a90
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2025-08-06 09:35:23 +02:00
Kai Köhne 7d164a7451 Update top-level README
Update top-level README to be more accessible, both for humans
and LLM's:
* Switch to Markdown syntax, rename file
* List the different documentation projects (qdocconf files),
  with details of the content and how to build it.
* Defer for main building instructions to qt5.git, as a) a top-level
  qt5.git build is the most reliable way to build the documentation,
  and b) most advise here doesn't only apply to the *.qdocconf files
  in qtdoc.git.

Change-Id: If903ec5283dcc6151e4628227637e422b98bc55e
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2025-08-06 08:25:01 +02:00
Jaishree Vyas 7f3b507e79 Doc: Revise 'Get and Install Qt' page for 6.10
As part of the onboarding documentation revision, especially for new users,
the consensus is to focus on Qt Quick and hide information related to widgets.

In this patch:
-Changed the versions
-Improved language
-Removed "Copying a Qt installation to another host"

Fixes: QTBUG-138436
Pick-to: 6.10
Change-Id: Ib7fbaa9b7f21c2b020e7ec0aa66fba961493d8ea

Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2025-08-05 20:38:14 +02:00