| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Callables wrapping C-function and their objects (as returned by
"qobject.deleteLater()") may be temporary objects like methods.
For the connection cache key, use self and the actual C-function
as so that a disconnect succeeds.
This did not show in the old design since the disconnect code
did expensive checks to retrieve the slot index of the function
and used the index code path.
Amends 33bd61d13d8d9e3794b6049891be62f3351313d9.
Pick-to: 6.8
Task-number: PYSIDE-2810
Task-number: PYSIDE-2221
Change-Id: Ic33af0d5da60589df16ca35c17824da592910a4d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Add instructions to download Android SDK and NDK.
- Add instructions to download the wheels.
- Modified 'How to Use' section to include the new instructions.
Pick-to: 6.8
Task-number: PYSIDE-1612
Task-number: PYSIDE-2620
Change-Id: I4d5e4ec634e149288a1f923fe506611dcd09af27
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends 008853632d48752ff4604f6ac2f13fe351ff7139,
bc87b5d3319d758827edcdff2798777bcf36ae6b.
Pick-to: 6.8
Change-Id: Ic1d2cb5dc2b19995cd9dfab2311d761d411837e5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
QWebEngineFrame is used like a value type (stored in QList, etc), but
does not have a default-constructor. Hack around by by adding a
function returning a default-constructed instance using a struct with
the same data members.
Task-number: PYSIDE-2620
Pick-to: 6.8
Change-Id: Id792a47fa9cc3f3c55eb1e52c06d01e03a104a74
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
It somehow got lost in the Qt 5 to 6 transition.
Pick-to: 6.8
Change-Id: I53eb13b516d51a907cf9dd247a735103ec91375d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2620
Change-Id: I815941a65c9b96c21f98eab4ef671124d8f410bc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Fixes: PYSIDE-2883
Change-Id: I56733c7b2bb3e573084ba0b281ad48e7fc6da5f7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adapt them to C++, where:
void QWebEnginePage::runJavaScript(QString scriptSource,
std::function<void (QVariant)> resultCallback)
and
void QWebEnginePage::runJavaScript(QString scriptSource,
quint32 worldId = 0,
std::function<void (QVariant)> =resultCallback = {})
exist.
Introduce a functor as static source to be able to share code with other
classes to be added.
Task-number: PYSIDE-2883
Change-Id: I61f913a38e761df18ce5a5f3ea43478b7dceace2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The class has been moved in Qt 6.
Task-number: PYSIDE-2883
Task-number: PYSIDE-946
Change-Id: I81ededa9d4eb1fb1a03249266f48cc65c84a6b02
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
As a drive-by, change the callbacks to PyCallable* and remove the
parameter checks from the snippets.
Task-number: PYSIDE-2883
Task-number: PYSIDE-946
Change-Id: I3986d2eced9606c71a3071755dce935b30cd67a5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- new class 'DesignStudio' to handle Design Studio projects.
- Currently uses a way of monkey patching to override the 'main.py'
to use 'main_patch.py' which has the same content but with
'app_dir' set to the parent of `main.py``. The reason for doing this
is that Nuitka requires the `main.py` to be in the same directory
as other resources required for the project.
Once the corresponding patch, to alternate between evaluating
'app_dir' based on whether the application is deployed or called
through the Python interpreter, is merged then this temporary fix
of creating 'main_patch.py' can be removed.
- Add tests.
Pick-to: 6.7
Change-Id: I79e6572bdbbf4576fbdd9039a4922997a22139f8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Strip parameters of type Qt::Disambiguated_t similar to
QPrivateSignal (see qtbase/0a3ff697380555538a0d035b768ddf10f772b55a).
As this becomes more and more common, it saves
the work of declaring those functions.
Change-Id: I973b47ddcfa3ac40795885da0f4001a95ad108fd
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fix titles and wording according to qtdoc..qtmodules.qdoc
(similar to bc87b5d3319d758827edcdff2798777bcf36ae6b).
Add the Quick Controls module to the API page.
In the Quick Controls module page, add the list of controls/QML types.
Task-number: PYSIDE-1112
Change-Id: Ie68e00e8eac9194142e3d1625c72557455bc68c6
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For some reason, qdoc generates the class documentation
into a folder named doc/qdoc-output/qtquickcontrols.
Amends 2ae76e777d7cc8305b515099b24ce5627171b5b9.
Task-number: PYSIDE-2620
Task-number: PYSIDE-1106
Change-Id: I91cee9dffc53edd6cbb74953743508f82cde2d3f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Images referenced in our .rst module descriptions in the "extras"
directory (which are usually extracts of the WebXML module
documentation) so far only were shown when they were also referenced
from another parsed WebXML document, causing them to be copied to the
doc/base directory.
Add a function to extract them from the .rst document and pass them
to the image resolving functions along with the source file path.
Task-number: PYSIDE-1106
Change-Id: I8efbca9f6a63e2aea6dc25596c496cb41517bc32
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Amends 2ae76e777d7cc8305b515099b24ce5627171b5b9.
As a drive-by, fix a syntax error in the modules list
introduced by bc87b5d3319d758827edcdff2798777bcf36ae6b.
Task-number: QTBUG-77650
Task-number: PYSIDE-2620
Task-number: PYSIDE-1106
Change-Id: Icfd0d68033405f00df04ab4513b636a8469df9f2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Amends bc87b5d3319d758827edcdff2798777bcf36ae6b.
Task-number: QTBUG-77650
Task-number: PYSIDE-2620
Task-number: PYSIDE-1106
Pick-to: 6.7
Change-Id: I07604e3fb281fe9441bc69d189600c22f66b44a5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make it possible to specify an alternate doc-package for locating the
WebXML files generated by qdoc. For example the documentation of the
QtMultimediaWidgets module is generated into the QtMultimedia module.
This became a problem after the module split
qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d.
Task-number: QTBUG-77650
Task-number: PYSIDE-2620
Task-number: PYSIDE-1106
Change-Id: I09ab50f7e3b56c0a7d0f2e94e593a8d5e83b2001
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The additional documents were no longer found after
qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d.
Add the directories.
Complements 752c1161d75f8c01e2c6c6b07ba02e9a62e65b10.
Task-number: QTBUG-77650
Task-number: PYSIDE-2620
Change-Id: I57f0eb212dc8b2eae6786135e0fb85b1ac526022
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
- Add QtGraphsWidgets to README.pyside6_addons.md, fixing:
Warning: the following modules are not in READMEs : {'QtGraphsWidgets'}
- Add to to documentation index page.
Task-number: PYSIDE-2620
Change-Id: Ida8964f852ae1e9869524ac59a50595b7ee59bb9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Fix titles and wording according to qtdoc..qtmodules.qdoc.
Pick-to: 6.7
Task-number: PYSIDE-1112
Change-Id: Icffc619bcbdf8815c72cc06d18cf2e832e11dfa2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Add missing modules to the index page and add missing
qdocconf files.
Pick-to: 6.7
Task-number: PYSIDE-1112
Change-Id: Ide552aae911af86dea444733acf5fd3c00d8b899
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.7
Task-number: PYSIDE-1112
Change-Id: Id08a4c204294078be739ee9ee39770791d7f3f65
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Modify ownership to C++, similar what is done
for QCoreApplication.postEvent()
Pick-to: 6.7
Fixes: PYSIDE-2870
Change-Id: I838720a694fcdb4726717c2e330ddda0156975db
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Introduces a new section in the navigation pane called "Release Notes"
with subpages for PySide6, Shiboken6, PySide2, and Shiboken2.
- The .md files are auto-generated by the script
`tools/release_notes/main.py` and created in the directory
`sources/pyside6/doc/release_notes/`.
Fixes: PYSIDE-2853
Change-Id: I6def8b526f11a638581f29798dd6917cd435d19c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Load and save once so that fully qualified enumerations are used.
Task-number: PYSIDE-2846
Change-Id: I544467c1d9254533bf62e1344c26c90c7d17d118
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Add snippet for QCanBus::availableDevices(QString*),
adapting to qtserialbus/0eab51e1e451f92fbaf0df69793cbb4137a5ece4 .
Task-number: PYSIDE-2620
Change-Id: I0667931000a8446db2e14d72fbba254a6866cc3c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The new enums still support old syntax by the forgiveness mode.
Nevertheless, when using mypy to check files, strict correctness
is enforced.
We correct a large number of forgiveness-induced errors,
but there is still a whole lot of other complaints to fix.
Task-number: PYSIDE-2846
Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
snake case
Hide the QSemaphore::try_acquire() added by
qtbase/38448b19a1c61cb5d5592e73efdbc4750bb835b2 .
Fixes: PYSIDE-2845
Change-Id: I78d20f5efc37361caf14653d9d02fc12e3b905e5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Add a helper function checking on a weak reference.
Task-number: PYSIDE-2751
Change-Id: I4f2d505636a24df083b0d2f4d3d312fcc44d125e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Implement QModelRoleDataSpan with an index operator returning
QModelRoleData* for modification. This enables
QAbstractItemModel::multiData().
[ChangeLog][PySide6] QModelRoleDataSpan for implementing
QAbstractItemModel.multiData() has been added.
Fixes: PYSIDE-2859
Change-Id: I35e4812bd999538f6dbd9e63a623791640287bab
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Introduce a shiboken message with parameters, reducing
strings generated into code.
- Return nullptr from __getitem__.
- Adapt injected code.
Task-number: PYSIDE-2859
Task-number: PYSIDE-2701
Change-Id: I4de98e40609cab400e4d7e11fe00f07594702b3a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Remove inline from inlined functions, fixing [readability-redundant-inline-specifier]
- Do not call parameterless base constructors, fixing [readability-redundant-member-init]
- Use nullptr [modernize-use-nullptr]
- Remove unneeded reinterpret_cast<>()
- Fix some warnings about uninitialized variables [cppcoreguidelines-init-variables]
Change-Id: I38e9ddc192556cf0d5770bd858b240f013c97c79
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Returning the qint64 result of the QV4::ExecutionEngine::throw...()
functions (usually 0) as int causes a lossy conversion warning. It is
not clear what the original intent of the code was; return -1 instead
to terminate processing in qt_metacall(), from which it is used.
Change-Id: I3a4f7f38ae6f2b36de47f7d14f6c12254f85147d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* QtStateMachine had the wrong return type in __init__ since
a very long time (2010).
* __dir__ has always the wrong annotation. Correction is needed
because it inherits __dir__ from object.
* the comment "#type:" is now reserved for mypy
Errors before: 350
Errors after: 333
Task-number: PYSIDE-2846
Change-Id: I26c4a931ec9b612f15f173e559d0306dc36b3c32
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
This script makes it easy to measure the size reduction
on all three platforms.
Change-Id: I54a9cce6fd18ef58421445c2eeb688bd97eca956
Task-number: PYSIDE-2701
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Adapt to qthttpserver/6acb3ccf221923a19118b3f3b15ffbebb3f33d4c.
The example will be fixed in a follow-up change.
Task-number: QTBUG-128113
Task-number: PYSIDE-2620
Change-Id: Ic454bcb8a37aa89ef6e9718df6dd8a7135e0b36c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Use a sentinel for end, adapting to
qtbase/089263fd4f1db201c98f4200cbb6ecdad8a437c3 .
Task-number: PYSIDE-2620
Change-Id: If3f8d745b405e7c4e8d8c8d72ef4c2411b2d703e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
__str__ and __repr__ are simply fixed by returning str instead
of PyObject.
__reduce__ actually has return type "str | tuple[Any, ...]",
but using str here too fits the purpose.
Errors before: 533
Errors after: 450
Change-Id: I6dd3527d3f5f3f035e667d0ca3c8f123e94e844f
Task-number: PYSIDE-2846
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2620
Change-Id: I0627c35162d37a9fa4fdb716235aacd15cdfb698
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- Some module dependencies of modules like QtQuick.
The tests are adapted acccordingly.
Task-number: PYSIDE-2620
Task-number: PYSIDE-1612
Change-Id: I89a2906fb756ea8c04e0545adc64be561101632c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Adapt to qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d.
Task-number: QTBUG-77650
Task-number: PYSIDE-2620
Change-Id: Icc083c9b3d768093f45caa5d7a3c54aec5eb2d4f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-2620
Change-Id: I4e4826c5ab01a36022f43d2aa7d23558e6964a66
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-2620
Task-number: QTBUG-125719
Change-Id: I6efeb1770c9bd7cddc3dbd91ca6294b9fddc9cc9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Implements a comment suggestion from 11064d4dcd688db1d54d7273ad700761fabe3f50
- _find_and_set_** methods renamed to _find_** methods. They now
return the required property.
- Property setters now update the value in the config class as well.
This also aligns with the design of certain other properties.
- Adjust tests.
Task-number: PYSIDE-1612
Pick-to: 6.7
Change-Id: I135d0a64928381a863cbf7235240efc45421324a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.7
Task-number: PYSIDE-1612
Change-Id: I001f0f446d41330e1ef0a798c82297a0e7c47021
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add explanation of Qt Widgets and Qt Quick,
remove outdated information, and move the notes
around where they make more sense.
Add a banner for both technologies, and adding
a screenshot of the Quick example.
At the end, add a section to point the readers
to the Examples and Tutorials sections.
Change-Id: Ie3b1856b7150a83633f9747a22057d902fb44b48
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- For some reason, libclang after parsing the headers ignores the
`const` qualifier in the `data` parameter of the
`QByteArray::fromRawData()`, making the paramerter `char*`.
`char*` maps to `typing.Union[bytes, bytearray, memoryview]` which
causes the issue. The expected correct type for the `data` parameter
is `str` in Python.
- This patch explicitly specifies the pyi-type as `str` thereby
overriding the default `char*` type.
Note: This patch is a workaround for the issue. The actual issue
should be fixed in the libclang, if it is fixable.
Fixes: PYSIDE-2831
Pick-to: 6.7 6.5 6.2
Change-Id: Iee3f6a54e1d65e9e4cb0082b7b6b17ba9ac501aa
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a QMetaMethod
The code previously used a instances of class GlobalReceiverV2 inheriting QObject in a hash in
SignalManager per slot tracking the list of senders to be able to use standard signal/slot
connections in Qt. This was a complicated data structure and had issues with cleanups.
This has been replaced by using an invoker object based on QtPrivate::QSlotObjectBase which
can be passed to
QObjectPrivate::connect(const QObject *, int signal, QtPrivate::QSlotObjectBase *, ...).
The connections (identified by ConnectionKey) are now stored in a hash with QMetaObject::Connection
as value, which can be used to disconnect using QObject::disconnect(QMetaObject::Connection).
Deletion tracking is done by using signal QObject::destroyed(QObject*) which requires
adapting some tests checking on the connection count and weak ref notification on receivers
as was the case before.
[ChangeLog][PySide6] Signal connections for Python callables not targeting a QMetaMethod
has be reimplemented to simplify code and prepare for removal of the GIL.
Task-number: PYSIDE-2810
Task-number: PYSIDE-2221
Change-Id: Ib55e73d4d7bfe6d7a8b7adc3ce3734eac5789bea
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.7
Fixes: PYSIDE-2843
Change-Id: I2e3476605d2818d20159ce945856d24dab26ff86
Reviewed-by: Christian Tismer <tismer@stackless.com>
|