| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
|
| |
Some users of QIODevice read functions (read, readLine and peek) might
want to use fixed buffers to avoid reallocation, e.g., asyncio's
buffered protocols. This adds overloads of said read functions that take
an input buffer (as a bytearray) and return the number of read bytes.
Pick-to: 6.5
Change-Id: I0c3678d3a87811029278c5ae8f829eef0432099a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
writeRawData() was historically implemented to take a string.
Fix the signature. Add an overload for PyBuffer/bytes.
Fix the return type of readRawData() to be bytes.
Fixes: PYSIDE-2442
Change-Id: I1684afd5aae2f8d118fa2fac87d916c23bd4a59e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-287
Change-Id: I9308ec96c607097f91daff78b5197c2d1045cff6
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- QSystemLocale for macOS relies on CFBundleAllowMixedLocalizations/
CFBundleLocalizations in the Info.plist file for the C++
Application bundle, as seen from
1d3ae5f0e98f252214d20ce8561533891311a71f. Python being an
interpreted language, there is no application bundle unless the
application is deployed. As such a Python application in macOS
relies on the Info.plist file of the Python interepreter. This
Info.plist file is a read-only file and hence it is not
possible/recommended to patch the Info.plist file of the Python
interpreter at runtime.
The issue has been raised upstream in CPython and can be tracked
here: https://github.com/python/cpython/issues/108269
- A possible solution/hack is therefore to use to POSIX environment
variables for macOS, for Qt for Python. This is also what the Python
locale module does.
See: https://github.com/python/cpython/blob/3.11/Lib/locale.py#L534
For other Unix systems, QLocale::system() uses the POSIX environment
variables, just like Python's locale module.
- For Windows and Linux, QSystem::locale() remains unchanged.
- The idea here is to obtain the system locale from the Python locale
module, and use the result to initialize and return a QLocale
object.
- As an extra, for qrunnable_create fix the typo - snipped to
snippet.
Fixes: PYSIDE-2419
Pick-to: 6.5 6.2
Change-Id: I12b16e824ddba21d1ebcd0695262c1dc0cc61eb2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Fixes: PYSIDE-2422
Change-Id: Id07b891083e11577e21c2ac2a429ef453328830e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The currently implementation was using an inherited toLong
function, not returning the Tuple[int, bool] that the docs
described. This adds a modification to follow the same
idea of all the other to*() methods.
Additionally, we remove all the to*() methods that
accept a QStringView, due to behaving the same with the QString
variations.
[ChangeLog][pyside6] QLocale.toLong now properly returns a (int, bool) rather than only int
Fixes: PYSIDE-2226
Change-Id: I5634e4010982e115c8208fdb9b56cfc57960358b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Inject Documentation and fix the snippet to indicate the QRect
return.
Task-number: PYSIDE-2411
Pick-to: 6.5
Change-Id: Id52f4c0a875301c6eac4a1d33034a04fa652e0d5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
| |
uri is str.
Pick-to: 6.5
Fixes: PYSIDE-2272
Change-Id: I1e10ef65bf223b08b035c24f44bac83f0450ad14
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current stubs specify the type of the required argument,
for example:
w = QWidget()
help(w.setParent)
reports:
setParent(self, parent: PySide6.QtWidgets.QWidget) -> None
which makes some IDEs to complain when passing None, behavior
that it's accepted as well.
This change adds an Optional to the parameter.
Pick-to: 6.5
Fixes: PYSIDE-2235
Change-Id: I57b54f47aee6783b1b7027981b5d282798d57ad4
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.5
Change-Id: I155f0297a1f6d31dc84472c8c7f99e2842da33e6
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.5
Change-Id: I261ec7ec933e21658d357ad1ffbeb4de5b84d13f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
It returns a string.
Pick-to: 6.5
Fixes: PYSIDE-2387
Change-Id: Ibb814acf9535a2529fb022bfe07dcc28f75b7c02
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
asyncio is an established library for Python applications with
concurrency and asynchronous I/O, and the de facto standard that
multiple other async frameworks build upon. Like Qt, it is based on an
event loop, so to this end, it offers an extensive API to implement
custom event loops that applications using asyncio can then leverage.
Task-number: PYSIDE-769
Change-Id: I3daf5d631e2fa0d44fd8c3c272ac5cce96f58653
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Allow-thread must be done in code for add-function.
Fixes:
typesystem_widgets_common.xml:537:164: Warning: 1 attributes(s) unused on <add-function>: allow-thread="yes"
Amends 65e48138e166c3575dfe23dfec259e112302fd28.
Task-number: PYSIDE-2384
Change-Id: Idf906c27fb3caa2361cff71ccca5f5385881ae40
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Fixes: PYSIDE-2384
Change-Id: Iad7a26385b40267308c287b8f6a4915972468574
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2384
Change-Id: I38cd611439a882e65f9f3bc6ca47dedd0a4fc66c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Incorrectly, the pyi file described that it was possible to pass a:
Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]
for setPixmap, and:
Union[PySide6.QtGui.QImage, str]
for setImage.
This uses the typesystem entry to restrict the setPixmap
to accept a QPixmap and only a QImage for setImage.
Additionally, this enable a PyPathLike signature, so users
can pass 'str', 'bytes', 'pathlib.Path' as well, so the accepted
arguments are:
setImage(...)
- PySide6.QtGui.QImage
- Union[str, bytes, os.PathLike]
setPixmap(...):
- PySide6.QtGui.QPixmap
- Union[str, bytes, os.PathLike]
Pick-to: 6.5
Fixes: PYSIDE-2395
Change-Id: I521980dbc781a72e54f49fc84af5349733385133
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Disable the deprecation warning for the moment. A better solution
needs to be found in Qt 7.
Pick-to: 6.5
Fixes: PYSIDE-2394
Task-number: QTBUG-91766
Change-Id: I6bf47c631b27a3378ab1d0c17d2551671a39cf93
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Fixes: PYSIDE-2386
Change-Id: I4a3eb40bc597952173718d7326234f6c7a0ea221
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
In response to:
I3eb1bd30e0124f89a052fffd16a7564f4450ec8a
Change-Id: I5393660521a8ee12a14bf2c287a6ea9a0393408f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
| |
Task-number: QTBUG-111305
Change-Id: I7ac79f59cfd0b85645d30485e86b6ff74bba20bb
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The "default value" parameter had an int 0 default value, which lead
to strange behavior ['0'] being returned for string lists with
missing keys.
- QStringList was not converted when forcing the type to be list
due to the QByteArray split mechanism.
- String values could not be coerced to a list
Fix the default value to have a default {}.
Add a helper function checking whether a custom type conversion
is actually needed or the default QVariant converter can handle it.
Pick-to: 6.5
Task-number: PYSIDE-2381
Change-Id: I91b22c05f851c2dc8c3792bd9f1446cfc8ceba51
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2381
Change-Id: Iac0922ad8eb67f6f19f43d9e796600ed11da2322
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Change-Id: Ie6379044282809fe73790d03cd086845bee98089
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2384
Change-Id: Ib32a4b336c39c4710745c221f9f1036dc21d6a29
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As a welcome unexpected gift, we now even get rid of the flags class.
The builtin Qt flags are still touched when creating properties.
This needs an extra registration of the single flag converter name
but no extra functions.
See testQObjectProperty of qlabel_test.py .
[ChangeLog][PySide6] After removal of the old enums, also the
complex flags structure could be removed.
Change-Id: Ie531a7470330af41eb491e8b1e37939f1afcb9a0
Task-number: PYSIDE-1735
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
- sharedmemory is a disabled feature in 6.6 for Qt for Android
- this is required to make Qfp Android build to work
Task-number: PYSIDE-1612
Change-Id: I389cca7c7ce60b12cfd31a5dea93a4d7a73ed4b8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The amalgamation of old and new enums is slowly unraveling from the
inside. This meanwhile actually removes the old code.
Included a change by Friedemann to improve enum value handling.
After the signed/unsigned problem was fixed, there was only one case
left where Qt and Clang parser disagreed which could be fixed.
The final solution uses overloaded functions to generate all
necessary cases with minimal footprint in the executable.
Task-number: PYSIDE-1735
Change-Id: I3741ce8621e783a750f3c05241c916008f78f39b
Done-with: Friedemann.Kleint@qt.io (+2 squashed commits)
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
Otherwise, for example QQmlAbstractUrlInterceptor locks up.
Pick-to: 6.5
Change-Id: I4f1b3e1829b00c16cbf983d6f297304c0e99023f
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Use Any instead of "any". Amends
3c2117c6ce31ff403fc2f17a181763057cd2e1bc.
Pick-to: 6.5
Task-number: PYSIDE-2285
Fixes: PYSIDE-2364
Change-Id: I1adc6c2e8e4d12516c42ba09b9431638423af1d3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- For Python/Shiboken types not known to Qt that requires wrapping
around a QVariant, we use the PyObjectWrapper type. This patch
registers a toInt() QMetaType converter for PyObjectWrapper, which
enables automatic conversion to int for a QVariant(PyObjectWrapper)
within C++ i.e. QVariant(PyObjectWrapper).toInt() will work
- This means that cases like QAbstractItemModel::data() that calls
QtPrivate::legacyEnumValueFromModelData(const QVariant &data) would
work without explicit conversion from QVariant(PyObjectWrapper) to
QVariant(int). But for cases like QMetaProperty::write() explcit
handling is still required.
- This would also work for cases where the QVariant(PyObjectWrapper) is
simply channeled from Python to C++, and from C++ back to Python
without performing any operations on it.
- Incase, the wrapped object is not a PyEnum/ShibokenEnum object, then
toInt() would return a -1.
Pick-to: 6.5
Task-number: PYSIDE-1930
Task-number: PYSIDE-2339
Change-Id: I983351f2ff88c79c29399c257e38421116efc7a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix QCoreApplication::translate(), SIGNAL(), SLOT()
and QMetaObject.indexOf*().
Fixes: PYSIDE-2357
Fixes: PYSIDE-2331
Task-number: PYSIDE-2340
Change-Id: I5198b1159ede06536bfc36287be8b3178f54d036
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Change (gadget) QScxmlEvent to be a value type.
Refactor the test to check for events as well.
Pick-to: 6.5
Fixes: PYSIDE-2340
Change-Id: I0e37de05740f17d41794ebc74c81e49c49753495
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Some modules pull in QtNetwork/QtQml via their Depends headers
although it is only a private/link dependency.
Suppress warnings about the enums.
Pick-to: 6.5
Change-Id: I35d75ca538bb770294e434b83233600462805e99
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
List the loaded (dependent) type systems as the reason mostly
is a missing dependent type system.
Pick-to: 6.5
Change-Id: Iaefd39b3097357402292b2520ae410a7fd6a8911
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
| |
This reduces noise in the log files.
Pick-to: 6.5
Change-Id: I0c8c98859058d9bbef26f71da83918490099a318
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Remove obsolete enumerations and classes.
Add a few new enums.
Pick-to: 6.5
Change-Id: I8283cb7b20000839b2c9f4ba16b9a69ffab9f2c6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
This reverts commit 87eb93ea934774bab6e8359ce3c80ae818fa9b7e.
The functions are reject (cannot find base operand
class) and cause warnings.
Pick-to: 6.5
Change-Id: I6a99405e41720a748dda2c7156e4effccbdab189
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The default type of numpy is int64 on Linux and long in Windows
these days. As numpy is still based on the old long/long long
scheme for the types, add some mapping.
[ChangeLog][shiboken6] numpy support has been extended to handle
short/long long integer types.
Fixes: PYSIDE-2313
Pick-to: 6.5
Change-Id: I75d9277ae0867401c2c188efb3a50f4c53c4fc24
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
resolution
Add a flag to AbstractMetaBuilderPrivate::findTypeEntriesHelper()
to suppress the class scope look in case scope resolution.
Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I04a4810d03845fb48393c5efed3641220bd12d87
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Introduced by qtbase/1fe7144a0746353ea629cd91b5c0d04a8434159b.
Task-number: QTBUG-103932
Pick-to: 6.5
Change-Id: I5455d22a71e917f469e2789ae38b08199efa8c09
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'QT_CONFIG(opengl)' doesn't necessarily mean all of the
qopenglfunctions_* headers are present.
That's not the case when QT_FEATURE_opengles2 is enabled. Only
qopenglfunctions_es2.h is installed in this configuration.
Amends: 6d6f614fdd7510a1b8a00a51bb6232a3d151523b
Fixes: QTBUG-112708
Pick-to: 6.5
Change-Id: I00219554caf25e48236724c150f8bcd7fc9dc46c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Complements 4106f1420119f77b41246836f1829431a1c58395.
Fixes: PYSIDE-2302
Task-number: PYSIDE-803
Pick-to: 6.5
Change-Id: I48af4f9ca364cc742f2ad69f9d604147f4c5cd0e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The function was removed by qtbase/2ca30440835ef99d8b5f720866fc163a9629bed7.
Bring it back with a FIXME for Qt 7.
Pick-to: 6.5
Task-number: QTBUG-105048
Fixes: PYSIDE-2300
Change-Id: I4c1fb0d8a87bcbc1cd3d8068500cf5ec9e047dde
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Fixes: PYSIDE-2298
Pick-to: 6.5
Change-Id: Idcfe91d1f2be5c3591b66977c8c7cc5e3275b4dc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Fixes: PYSIDE-2285
Change-Id: I525ffea2f79bf54de43dc02c31a41994fe3004d5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I6776abea0eebda9f736ae77c6c3f395bde7afe93
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I6ebb82b93df4dc31083adc209190fab4dcc4299b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2272
Change-Id: I8f67505875178c007de2c141a524e9bc1e76169a
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I3bbbc063525d6cb2b4a30281915578b36fbe6bbb
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|