summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc
Commit message (Collapse)AuthorAgeFilesLines
* QDeadlineTimer: use new comparison helper macrosTatiana Borisova8 days1-6/+6
| | | | | | | | | | | Replace public friend operators operator==() and operator!=() of QDeadlineTimer to friend method comparesEqual(). Replace public friends operator<(),<=(),>(), etc of QDeadlineTimer to friend method compareThreeWay(). Task-number: QTBUG-120304 Change-Id: Ib855ccac9b31b54fe28b822f2985154608fefa27 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Extract metatype information as part of library finalizationAndrei Golubev9 days1-0/+14
| | | | | | | | | | | | | | | | | | | | | | Make qt_finalize_target call qt6_extract_metatypes() on any library targets if the finalization is deferred and the target uses automoc. This makes sure the metatype information is always available when necessary (e.g. in QML's foreign types setting). [ChangeLog][CMake][Important Behavior Changes] With CMake 3.19 or later qt_extract_metatypes() is automatically called during target finalization for libraries that use automoc now. This has no effect if you've already manually called qt_extract_metatypes() before, but it does make sure that the metatypes are also generated if you haven't. Task-number: QTBUG-121199 Fixes: QTBUG-101143 Fixes: QTBUG-99051 Change-Id: If72ce5887a9cd71a4c15e9509b2eaab5af271adf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Doc: Qt Data Types DocumentationJaishree Vyas2024-04-041-0/+43
| | | | | | | | | Updated the list Fixes: QTBUG-73386 Pick-to: 6.6 6.7 Change-Id: If913a26d32a39c71fb7fba815bdafa924da69457 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* QFileSystemEngine: make factory functions return unique_ptr<QABFE>Ahmad Samir2024-03-211-6/+12
| | | | | | | | | | | | | | | | This makes the ownership of the returned pointer clearer. It also matches reality, some call sites were already storing the pointer in a unique_ptr. Also shorten the function name to "createLegacyEngine", you have to read its docs anyway to figure out what it does. Drive-by changes: less magic numbers; use sliced(); return nullptr instead of `0`. Change-Id: I637759b4160b28b15adf5f6548de336887338dab Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* QAbstractFileEngineIterator: add `bool advance()` virtual methodAhmad Samir2024-03-201-10/+8
| | | | | | | | | | | | | | | | | | | | | | | And remove hasNext/next() methods. This remodels QAFEI to be like QFileSystemIterator. This better fits the logic in the newly added QDirListing class (which uses STL-style iterators). QFSFileEngineIterator: Initialize the internal nativeIterator in the constructor; also replace the advance() private method with an override for the advance() method inherited from the base class. QResourceFileEngineIterator: Override currentFileInfo(), with a QResouces the QFileInfo is created on demand if/when this method is called. This is the backend/private API, and QDirListing is the public API that can be used in a ranged-for to iterate over directory entries. Change-Id: I93eb7bdd64823ac01eea2dcaaa6bcc8ad868b2c4 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Doc: Fix QDoc syntax in bindable properties overviewPaul Wicking2024-03-201-2/+2
| | | | | | | | | Drop the \c command when in front of \l commands as that doesn't work. Pick-to: 6.7 6.6 Change-Id: I0aa092461807e068e9c2368f5d6f04e77b56c910 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> Reviewed-by: James DeLisle <james.delisle@qt.io>
* QAbstractFileEngine: add a path parameter to beginEntryList()Ahmad Samir2024-03-171-4/+5
| | | | | | | | | | | | | Change beginEntryList() to take a path parameter, which it passes on to the QAFEIterator constructor; setting the path at construction makes more sense, because typically the path isn't supposed to change during iteration, and this simplifies the code at the call site. Remove setPath(), the last usage in Qt repos was in QtCreator, and that has been ported away from it. Change-Id: I01baa688e0f9b582aacb63d7d98a794276e58034 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QAbstractFileEngine: make {begin,end}EntryList() return a unique_ptrAhmad Samir2024-03-171-2/+2
| | | | | | | | Makes ownership clearer. Change-Id: Ibb57ca900ef30b16d48964a977e997ba6705248b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Long live QT_ENABLE_STRICT_MODE_UP_TOGiuseppe D'Angelo2024-03-131-0/+11
| | | | | | | | | | | | | | | | | | | We already have fine-grained macros to individually disable APIs that we consider "suboptimal" or "dangerous". This commit adds a shortcut for the user to set all such macros in one go. QT_ENABLE_STRICT_MODE_UP_TO is versioned, just like QT_DISABLE_DEPRECATED_UP_TO; the idea is that users should set it to the minimum Qt version they want to support. Also, if QT_DISABLE_DEPRECATED_UP_TO is not set, then QT_ENABLE_STRICT_MODE_UP_TO will set it as well, to the same value. [ChangeLog][QtCore][QtGlobal] Added the QT_ENABLE_STRICT_MODE_UP_TO macro. Change-Id: I5466465986104e047a6a86369928be9294f24ab7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Mention QChronoTimer in API docsAhmad Samir2024-03-033-56/+69
| | | | | Change-Id: Iaf9fb31994f1580b2051dbd0b1b8eef2a218aa39 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Timers: add Qt::TimerId enum classAhmad Samir2024-03-031-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Which will be used to represent timer IDs. Thanks to Marc for the idea to use "a strongly typed int". QTimer got a new id() method that returns Qt::TimerId (can't overload timerId()). Various classes in qtbase have a member named timerId(), but a new method is needed anyway in QTimer so id() it is (this is the reason QChronoTimer only has id() and no timerId()). Besides timer.timerId() has an extra "timer". This commit fixes the inconsistency between QObject using `0` timer id to indicate "failed to start", while QTimer::timerId() returned `-1` to indicate "timer is inactive". QTimer::id(), being a new method and all, now returns Qt::TimerId::Invalid, which has value `0`, so that the values match between the two classes. Extend the unittests to ensure QTimer::timerId()'s behavior is preserved. [ChangeLog][Core][QObject] Added Qt::TimerId enum class, that is used to represent timer IDs. Change-Id: I0e8564c1461884106d8a797cc980a669035d480a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Add QChronoTimer, a timer with nanoseconds precisionAhmad Samir2024-03-031-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The interval in QTimer is a QProperty of type int, which means it's limited to the number of milliseconds that would fit in an int (~24 days), this could cause overflow if a user constructs a QTimer with an interval > INT_MAX milliseconds. And it can't be easily changed to use qint64/std::chrono::nanoseconds: - changing the getters to return qint64 means user code would have narrowing conversions - the bindable QProperty interval can't be changed to qint64 during Qt6's lifetime without the risk of breaking user code - adding a new bindable QProperty that is qint64/nanoseconds is an option, but it has the complication of what to do with the int interval; set it when setInterval(milliseconds) is used by using saturation arithmetic? and what about notifying observers of the changed interval? Thus the idea of creating a new stop-gap class, QChronoTimer, as a cleaner solution. Both classes use QTimerPrivate. During the lifetime of Qt6, QTimer's interval range is about 24 days, whereas QChronoTimer's interval range is about 292 years (duration_cast<years>nanoseconds::max()). Currently the plan is to fold QChronotTimer back into QTimer in Qt7. Mark all QPropertyS in the new class as FINAL since they aren't intended to be overridden; this offers a performance boost for QML[1]. [1] https://lists.qt-project.org/pipermail/development/2024-February/044977.html [ChangeLog][QtCore] Added QChronoTimer, which uses a std::chrono::nanoseconds intervals, as a replacement for QTimer. Fixes: QTBUG-113544 Change-Id: I71697f4a8b35452c6b5604b1322ee7f0b4453f04 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Add QDirListing, an STL-style iterator for directory entriesAhmad Samir2024-02-291-8/+50
| | | | | | | | | | | | | | | | | | | | | | | | This class offers a forward-only const_iterator, that matches the system low-level functions' logic (e.g. readdir()/dirstream logic). This iterator is a std::input_iterator_tag. QDirIterator uses Java-style iterators that have a couple of issues: - They don't fit the logic of the underlying native system functions (readdir()/__dirstream and co.), there is no way to know if there is a next entry except by advancing the iterator (calling readdir()) first - As a consequence of the above, two QFileInfo objects, current and next, had to be used to fit that paradigm; and the code always iterated/stat'ed an extra entry past the one we want, e.g. when filtering The next step is porting QAbstractFileEngineIterator and its subclasses to be like QFileSystemIterator, i.e. replace hasNext()/next() with a `bool advance()` virtual method. This is easier to reason about than the Java-style iterators, and is more in-line with the new class. Discussed-on: https://lists.qt-project.org/pipermail/development/2023-December/044745.html Change-Id: I8e696cefdca18d8c78f803efdb83a73dd43eb720 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Copy QDirIterator.{cpp,h} to QDirListing.{cpp,h}Ahmad Samir2024-02-291-0/+28
| | | | | | | To make it easier to follow the history in git. Change-Id: I094056c1ec130aeef77aa2d20289ab766bc25083 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QString/QByteArray: add slice() methodsAhmad Samir2024-02-292-0/+16
| | | | | | | | | [ChangeLog][QtCore][QString/QByteArray] Added slice() methods that work like sliced(), but modify the string/byte-array they are called on. Task-number: QTBUG-99218 Change-Id: I3075562983ef123d9aa022a2304c7e774cf2ea42 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Correct doc snippet licenseLucie Gérard2024-02-283-3/+3
| | | | | | | | | | | | | | All file under doc/snippet should be license as Documentation snippets and according to QUIP-18 [1] this is LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I76eedfb6b15c4091f726a5652e3530001d7cdaf7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add the external reference to CMake package creating docsAlexey Edelev2024-02-231-0/+5
| | | | | | Pick-to: 6.6 6.7 Change-Id: I70560afbc78ec901169779c2b30efec0bb8d67f0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Improve doc page of the QT_WASM_MAXIMUM_MEMORY propertyAlexandru Croitor2024-02-231-3/+3
| | | | | | | | | | | | | Fix typo in 'application'. Emphasize MAXIMUM_MEMORY. Link to the latest commit of settings.js instead of the master branch, so the link doesn't break in the future. Pick-to: 6.7 Task-number: QTBUG-121705 Change-Id: If4bbdcc4fa33d86a892c81dfd1d2703386a0035b Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* CMake: Default QT_I18N_SOURCE_LANGUAGE to "en"Joerg Bornemann2024-02-212-1/+4
| | | | | | | Pick-to: 6.7 Task-number: QTBUG-122396 Change-Id: I36c76211529e685aa1c85a7fb1b15667ad479185 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: Link to qt_add_translations from qt_standard_project_setupJoerg Bornemann2024-02-211-0/+2
| | | | | | | Pick-to: 6.7 Task-number: QTBUG-122396 Change-Id: I88e95eace2f6d387cf03aa42394e90231d0f9a9c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Rename I18N_*LANGUAGES variables and parametersJoerg Bornemann2024-02-212-12/+12
| | | | | | | | | ...according to the Qt 6.7 CMake API review. Pick-to: 6.7 Task-number: QTBUG-122396 Change-Id: I42012e346325ff05d63fa4dac44276eef15320fe Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove QT_ANDROID_DEPLOY_RELEASE variableAlexey Edelev2024-02-201-22/+0
| | | | | | | | | | We assume that we can remove the variable handling and replace with the warning, since variable was never out from TP. Pick-to: 6.7 Task-number: QTBUG-121706 Change-Id: Iee29c0b5327d62cd3d7e77419e14e555fadcec2c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Documentation: Rename 'Qt Designer' to 'Qt Widgets Designer'Friedemann Kleint2024-02-191-1/+1
| | | | | | Task-number: QTBUG-122253 Change-Id: I04ab521decaf908b1c1491987f6de1e816a42a33 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Fix readString() and readByteArray() code snippetsAndreas Eliasson2024-02-151-4/+4
| | | | | | | | | | | Both of these functions return a StringResult, which has no StringResult::code member. Instead, use the existing StringResult::status member. Fixes: QTBUG-122254 Pick-to: 6.7 6.6 6.5 6.2 Change-Id: I0b9bfa1fc9a30e9c542ab90f3d8f4243bdeda762 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Doc: Resolve qdoc link warningsPaul Wicking2024-02-142-4/+4
| | | | | | | | | | | - Drop link to non-existing documentation. - Reorder links such that the target becomes the text and vice versa. - Use correct link target names. - Add missing qttestlib doc project dependency to qtwidgets. Pick-to: 6.7 Change-Id: Iaa0ea7b22326c82271b14b17c4b78c3a25a834f1 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* QFileInfo: clarify the docs with respect to "file" == file system entryAhmad Samir2024-02-021-0/+18
| | | | | | | | | | | | | The word "file" could be slightly misleading in this context, because it refers to an entry on the file system, which could be a regular file, a dir, a special character device. Clarify the meaning by using "file system entry" instead of just "file". Fixes: QTBUG-120688 Pick-to: 6.7 6.6 6.5 Change-Id: Ic2a91cc74336a6718c13ad1ffd9f2c4001e5d63f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Change license of .qdoc filesLucie Gérard2024-02-012-2/+2
| | | | | | | | | | | According to QUIP-18 [1], all .qdoc files should be LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Change-Id: I4559af21fc9069efa9bf0cbd29c5e86cfdac9082 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Fix the QT_USE_TARGET_ANDROID_BUILD_DIR \page commandAlexey Edelev2024-02-011-1/+1
| | | | | | | | Fix the copy-paste consequences. Task-number: QTBUG-121706 Change-Id: Id1ce9a69dee599dc4a23df1241a9467a14a9b68a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Introduce QTP0003 which controls the BUILD_SHARED_LIBS impact on user projectsAlexey Edelev2024-02-012-4/+51
| | | | | | | | | | | | | | | | | | | Since 6.7 we consider the BUILD_SHARED_LIBS when creating libraries using Qt CMake API. This change may affect the user projects that rely on the old strategy of selecting the default library type. To preserve the old behavior this change introduces the QTP0003 policy that allows user to control whether the BUILD_SHARED_LIBS should or shouldn't be considered in library creation process. The policy doesn't affect Qt repos, we assume that we want the NEW behavior by default. Fixes: QTBUG-121707 Pick-to: 6.7 Change-Id: I4bcfbd8966839731624e3f7ef9e0d6bb2782ac50 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Fix undocumented parameter in QFlags::operator=()Topi Reinio2024-02-011-2/+2
| | | | | | | | | | | | | | Fixes a documentation warning: (qdoc) warning: Undocumented parameter 'other' in QFlags::operator=() This warning is reported by the latest version of QDoc, but fixing it causes another warning in the currently-provisioned QDoc. Therefore, raise the warning limit temporarily to pass the documentation check in CI. Pick-to: 6.7 Change-Id: I14863baebf712cda6f4da6d989e3ab83ffea7f85 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Doc: Add note to deployment variablesJoerg Bornemann2024-01-311-0/+4
| | | | | | | | | | ...that mentions that they're only needed for advanced use cases that aren't covered by the higher level deployment commands. Pick-to: 6.7 Task-number: 121708 Change-Id: Id31aece7ae7685ea5f4940e6c4adf62ae8216528 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: Address qt_generate_deploy_app_script issues from API reviewJoerg Bornemann2024-01-312-2/+27
| | | | | | | Pick-to: 6.7 Task-number: QTBUG-121708 Change-Id: Id0beb7c3045513e1665bd4062f7236243898b7c1 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: Add table for *_DIR parameters of qt_deploy_runtime_dependenciesJoerg Bornemann2024-01-311-7/+35
| | | | | | | | | | | | The tables allows us to show how the parameters correspond to variables, and it gives us the ability to add notes. Add the note that LIBEXEC_DIR is available since 6.7. Pick-to: 6.7 Task-number: QTBUG-121708 Change-Id: I9421bdc692b0df45dc356c17fb90da8799d18ef9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: Address QT_DEPLOY_LIBEXEC_DIR issues from API reviewJoerg Bornemann2024-01-312-7/+8
| | | | | | | Pick-to: 6.7 Task-number: QTBUG-121708 Change-Id: I25a05fc26e9950a8b84770347dbcea1912832990 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: Address qt_deploy_runtime_dependencies issues from API reviewJoerg Bornemann2024-01-312-2/+31
| | | | | | | Pick-to: 6.7 Task-number: QTBUG-121708 Change-Id: I8b7b3a7d03ab757f3cb6e55f27f0e4ba0e4a5bbd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QFileInfo: cleanup snippets fileAhmad Samir2024-01-221-10/+33
| | | | | | | | This makes it possible for LSP clients, e.g. clangd, to inspect the code while typing it, which hopefully means less errors. Change-Id: Ib2ed8fec94a559575237107afbcd2bdb3c46ef8d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* qt6_wrap_cpp: Add .moc generationOrkun Tokdemir2024-01-193-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | When a `.moc` file is included in a source file and that source passed to `qt_wrap_cpp`, Users should add the generated `.moc`s path to the target's include path. Since we don't share anything about the output path of generated files by `qt_wrap_cpp`, it makes sense to add in inside `qt_wrap_cpp`. And also, the generated `.moc` file is added to target's source to complete the dependency graph. Otherwise, Users need to get output variable and pass it to target's sources. * Update docs * Add test [ChangeLog][Build System] qt_wrap_cpp will accept .cpp files from now on. When .cpp a file is passed to qt_wrap_cpp, TARGET parameter becomes required. Generated .moc files are added to target's sources inside qt_wrap_cpp. That's why the output parameter will not contain generated .moc files. Fixes: QTBUG-113402 Change-Id: I54dd2b1ff8e5c9ba457b1eb4f73b0a8190d9c659 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Set AUTOGEN_BETTER_GRAPH_MULTI_CONFIGOrkun Tokdemir2024-01-171-0/+24
| | | | | | | | | | Since https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8919 is merged, `qtbase` should be updated accordingly. If `CMake` is equal or greater than `3.29`. `timestamp_$<CONFIG>` is used instead of `timestamp`. This commit reimplements 8041bfba47305352627d910930e52da496904c17 which is reverted with 4b1d96ea1b16e3eef2222de78677a4d99a87940f Change-Id: I335e3855c1a11c404202ae7b74f0c356b8fe53bd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Remove foreach snippets from the documentationKai Köhne2024-01-161-6/+0
| | | | | | | | | | | | | | | We don't recommend foreach anymore, and have in fact adapted two snippets already to use for(), but missed the documentation text. In any case, it feels a bit weird to give an example how to iterate over QStringList in each of these methods, so we might as well just remove this part. Pick-to: 6.6 6.7 Change-Id: If8744e48961661ad518f5f24781c38f371d981bc Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Document qt_import_plugins behavior for dynamic pluginsAlexey Edelev2024-01-161-8/+26
| | | | | | | | | | This describes how qt_import_plugins works for dynamic plugins. Pick-to: 6.7 6.6 6.5 Task-number: QTBUG-118829 Change-Id: I7b30060c11c0d8c4a1fbae6782a047737ba7d454 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* QUrlQuery/Doc: fix resulting query with ( and ) delimitersThiago Macieira2024-01-121-1/+1
| | | | | | | | There's no final ) because there's nothing there to be delimited. Pick-to: 6.5 6.6 6.7 Change-Id: I6e2677aad2ab45759db2fffd17a4ce4aa902e140 Reviewed-by: David Faure <david.faure@kdab.com>
* Add the documentation for QT_USE_TARGET_ANDROID_BUILD_DIR variableAlexey Edelev2024-01-111-0/+21
| | | | | | Task-number: QTBUG-117443 Change-Id: I2c7844dec825566899da16298a938728346eadae Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Doc: Add code example to describe targeting precompiled libsAndreas Eliasson2024-01-101-0/+3
| | | | | | | | Fixes: QTBUG-120263 Pick-to: 6.7 6.6 Change-Id: Iba7e3bf68e4fc48764e4a751e14c398355a94173 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
* Doc: Rearrange best practices and how to documentationJaishree Vyas2023-12-282-2/+2
| | | | | | | | | | Change the best practices to how-tos, which are categorized now on a new page. Fixes: QTBUG-118044 Pick-to: 6.7 6.6 6.5 Change-Id: I78dba2a1fde03b346f110ecd54e11485a0869540 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Use Qml DefaultProperty as example for Q_CLASSINFOKai Köhne2023-12-202-3/+5
| | | | | | | | | | | Setting a DefaultProperty is arguably something more useful to people than the 'made up' version example. Also add more links to the relevant QML pages. Pick-to: 6.6 6.7 Change-Id: Id967df7ddf81511299f95b9fd24f56af671fb855 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* wasm: set MAXIMUM_MEMORY to 4GBMorten Sørvig2023-12-201-0/+23
| | | | | | | | | | | | This increases the maximum available memory from 2GB (Emscritpten default) to 4GB, which is the 32-bit wasm max. Add QT_WASM_MAXIMUM_MEMORY qmake/cmake option for overriding. Pick-to: 6.7 Change-Id: I6257fc919a749412c4ba1e0f939996c6057ce314 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
* Android:CMake: add a group for Android propertiesAssam Boudjelthia2023-12-182-0/+21
| | | | | | | | | | This allows to have a full list of up-to-date CMake properties or variables to be shown in the Android docs. Task-number: QTBUG-115020 Pick-to: 6.7 Change-Id: I6a75586432fc374f1b4affe0468cd55bad1a868f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Add LIBEXEC_DIR argument to qt_deploy_runtime_dependenciesJoerg Bornemann2023-12-181-4/+5
| | | | | | | | | | [ChangeLog][CMake] The qt_deploy_runtime_dependencies function gained the LIBEXEC_DIR argument to set the directory for deploying helper executables on Unix derivatives. Pick-to: 6.7 Change-Id: Icf2b0b439a0e635caa4d9bd2f6950bec74f97c3b Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* CMake: Add QT_DEPLOY_LIBEXEC_DIRJoerg Bornemann2023-12-182-8/+52
| | | | | | | | | | | | | [ChangeLog][CMake] Added the deployment variable QT_DEPLOY_LIBEXEC_DIR. This variable can be used in CMake deployment scripts to install helper binaries of a project. In particular, this directory is going to be used for deploying the QtWebEngineProcess executable. Pick-to: 6.7 Task-number: QTBUG-119077 Change-Id: Ia2502af696c53943ad13e3944c8debf2dfd8daee Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Doc: Remove references to Qt 4 in Qt 5.0 in Qt Core documentationKai Köhne2023-12-182-2/+3
| | | | | | | Pick-to: 6.6 6.7 Change-Id: Ide0c1ed441c923753f1e81141460719161662c15 Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io> Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>