| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix the example comment
- Use Property decorator
- Use leading underscore for private member variables
- Streamline the code a bit.
Amends ea3851cdaf7f13f62fe9ae23b96750cd70468294.
Pick-to: 6.2
Task-number: PYSIDE-841
Change-Id: I66843d692a4fa6d0db7da2468ed4358ec48bcd8b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Move the lighting example to its own directory.
Pick-to: 6.2
Task-number: PYSIDE-841
Change-Id: I98b197994eb7f4cd592ce3af81c82d233fab9293
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Amends ea3851cdaf7f13f62fe9ae23b96750cd70468294.
Pick-to: 6.2
Task-number: PYSIDE-841
Change-Id: Ifb022247e6867ce3e84b1b053e139125e984e4b5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Ported from C++
Change-Id: Id18068e36ecfa26ab0312cfde2de1ba1c0773223
Task-number: PYSIDE-841
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
- Remove * imports
- Pass signals instead of strings (SIGNAL)
- Break lines
Pick-to: 6.2
Change-Id: I566f69210821f73dd22d351926a27638e1fc5671
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Pick-to: 6.2
Change-Id: I00db0a8e8668678d5e11a1c469ec658d4a9e0a75
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Ported from c++.
Pick-to: 6.2
Task-number: PYSIDE-841
Change-Id: Ie7fc583913727ecf1838bc31b79da3ccc293fea2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Ported from C++.
Task-number: PYSIDE-841
Pick-to: 6.2
Change-Id: I60eea347586a66e69ff83ec3e2b275c053deafca
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Other minor improvements
Change-Id: I1a09b6ea813713f53c26f7244f2d913cc73c6c5b
Task-number: PYSIDE-841
Pick-to: 6.2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
| |
Ported from c++
Change-Id: I3589a66f8335e808bcc81796fa4aa3e2401b5973
Task-number: PYSIDE-841
Pick-to: 6.2
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
Border layout example ported from C++ to Python
Pick-to: 6.2
Task-number: PYSIDE-841
Change-Id: I66df4041183ae1eced6fe75d52c21ce381c3d3eb
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I97166f7e89c0365f425d1f8b0b840b7ef066d0d7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a class that directly wraps a C++ sequence container,
allow for modifying them.
For all instantiated containers, generate a special (sequence) type
that wraps the C++ container directly. For example, it will be
accessible as a QList_int.
This is achieved via providing a template for a type private
that relies on a conversion traits template for conversion.
Only the conversion traits specialization code needs to be generated.
Use cases:
- Allowing for modifying Fields of such container types
(non-owning)
- Pass it into functions taking such containers instead of converting
back and forth from a PyList (constructed in Python, owning)
[ChangeLog][shiboken6] Support for opaque C++ sequence scontainers
has been added, allowing to pass a wrapped C++ container
directly instead of converting it back and forth from
Python sequences.
Task-number: PYSIDE-1605
Change-Id: I49d378eb1a0151730d817d5bdd4b71a7c3b5cdda
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
Amends 1cbec5c4a99e80819df54a4dc97091050d55b345.
Task-number: PYSIDE-1252
Change-Id: I1c516e6c596191756f37287a802178cc3a32e244
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Add an example and a tutorial section.
Task-number: PYSIDE-1252
Change-Id: Ib0f1399abe9b0eb832c0202f54cb83dfad870d17
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Add a small example along with a German translation using gettext.
Add a tutorial.
Pick-to: 6.1
Change-Id: I254a5a66521ecc2827a5811469d9d21360f99b81
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding screenshots and small documentation file to the modules
- corelib
- datavisualization
- external
- opengl
- quick
- sql
- uitools
- webchannel
- webenginewidgets
- some widgets
- xml
Renaming the widgets gallery due to name conflict
with the quick controls gallery, and fixing two
typos from contextinfo.py and hellogl2.py.
Task-number: PYSIDE-841
Pick-to: 6.1
Change-Id: I2705e5d605fa738da0dca906cf6acb4b9d5d3dcd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding screenshots to:
- declarative
- multimedia
- network
- widgets
Renaming examples to avoid conflict on images names.
Task-number: PYSIDE-841
Pick-to: 6.1
Change-Id: I21f403ee62b45c0cb2a45eca6c5c99f11901610e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
| |
Pass the proper default value when reading the geometry.
Fixes: PYSIDE-1584
Pick-to: 6.1 5.15
Change-Id: I6cff4e9e47b68704d6a75384a84c36268892b409
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
The example nicely illustrates QTextEdit, QFileDialog, mime types
and other aspects.
Pick-to: 6.1
Task-number: PYSIDE-1112
Change-Id: I88358606040dde0701468cba37ee7d12c0acfdb0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Fix error
AttributeError 'builtin_function_or_method' object has no attribute 'width'
Amends c5db9d63277201ee58829f7eb0656c534d04c249.
Task-number: PYSIDE-1112
Change-Id: I5050283a62fea5c389852168284715412cb50260
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
- removing '\' from long lines,
- use f-strings instead of concatenating strings
- Use f-strings instead of the old '%' formatting
Task-number: PYSIDE-841
Change-Id: I4983c25a6272e10119d5d1a74c180828ca6f64e6
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
There were many variable names using built-in python functions
so this patch renames them to something safe.
Task-number: PYSIDE-841
Change-Id: Iade34711ba31797f08f3f924be05023a7f12d5ef
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I0360f1476af666494c730e4f3c8f4f3c562abc09
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
| |
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
Port 0a392780c832a968f3501c600b063ab7c62e5c64 from qtbase.
Change-Id: I89112fdd7dde283b02b77c802a5276af8b172040
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: Ib8991199e4822673d6a25cba0023dbe3b03f5938
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The example apparently has never worked. Fix it by
using QPyTextObject as a base class and using a different
character (as done in qabstracttextdocumentlayout_test.py).
Modernize the code and use per-class imports.
Task-number: PYSIDE-1112
Change-Id: Iceb6868afe752761820715c1ce68abc77b0a8011
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
As a drive by, fix breakages caused by removed APIs and oversights
of the snake case change and wrap some long lines.
Task-number: PYSIDE-1112
Change-Id: I09acdc7bb6f356964c859111ffd4643a97f5bdf6
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: I8534e911959d6eed2ed6d3f7741e99929ff0125e
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
As a drive-by, add a missing comma.
Amends 9a9f9fd2528c03df4b0e9dde48026a2181e8a410.
Task-number: PYSIDE-1112
Change-Id: I5e7205609b460f56324a8ec193948250e6e38d6b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
- Use per class imports
- Streamline code
Task-number: PYSIDE-1112
Change-Id: I77f00a893b397d1cf73d85bb41038c7c4a73405c
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Complements 9a9f9fd2528c03df4b0e9dde48026a2181e8a410.
Task-number: PYSIDE-1112
Change-Id: If239fea81f5db505aaaf1fff2cd6d0b8ad7c98f9
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use per class imports
- Start in root folder so that large directories (/bin/, Windows)
are easily reachable
- Remove the line edit and navigate by doubleclicking instead
since this is more on line with expectations
- Use a QPlainTextEdit for logging
- Make the log message more informative
- Add icons
Task-number: PYSIDE-1112
Change-Id: I09663c40331df149cc15735f36f2553236759573
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use per class imports
- Remove string-based connections, fixing some errors introduced
by the snake case renaming
- Add some spacing and indent main
- Use math.pi
Task-number: PYSIDE-1112
Change-Id: I2171fc9eb27f9926f32648a289df404d390ace43
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: Ib60a1b5ac4cecd6b4152c8264e23a0258047a736
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This is an adaptation of my code available on
https://github.com/dridk/QJsonModel. Due to its success, it may be good
to add it into the official documentation.
Pick-to: 6.0
Task-number: PYSIDE-841
Change-Id: I5b9acddb684ba27233efa53e6b0e04291aaba46a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
A widget where user can draw on a canvas with different color.
It is possible to save and load the canvas into a PNG file.
This example teaches the user how to use QPainter outside the paintEvent
using a QPixmap.
Pick-to: 6.0
Task-number: PYSIDE-841
Change-Id: I8bbab68193894f4f5a6e101fa23fc65e6cb30864
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Recreate the watermarks with Python code. Use the standard Qt for
Python logo and remove the C++ logos.
Task-number: PYSIDE-1112
Change-Id: I29679f7f6f4e245d7d29099648fea9678e6706f8
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The classwizard created some outdated C++ header and source which is
not useful for Qt for Python.
Rewrite it to generate a Python class and add a special page allowing
for specifying properties and signals of QObjects. Add an overwrite
check and a 'Launch' checkbox to the conclusion page.
Use QFormLayout instead QGridLayout for the pages.
Task-number: PYSIDE-1112
Change-Id: Ice158553571e30ea069ceda8873bf165dc704afc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Change it to a simple highlighter for Python instead of the outdated
qmake syntax.
Remove the resource file.
Task-number: PYSIDE-1112
Change-Id: I49157eccd8dbd26fca85910afb404648d7cc97a3
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: Ia42e395a3c650f4c11f05cfe5c6f67d309c4a3d3
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Port to snake case.
- Use per-class imports.
- Replace call to obsolete qrand() function.
- Fix the random movement (angle) by using setRotation() as does
the C++ example.
- Use QGraphicsScene.advance() instead of per-mouse timers
to advance the scene as does the C++ example.
Task-number: PYSIDE-1112
Change-Id: Ibb5b4bde51021d890acb4cc6c2f41a3e0d0207af
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Sync it up with the C++ example:
* Add a widget for the dialog options
* Add QInputDialog.getMultiLineText()
- Port to snake case
- Use per-class imports
- Fix a crash in the font dialog code by using QFont.fromString()
Task-number: PYSIDE-1112
Change-Id: I27df02ce0448fbd8dad529500652d58d23b0379c
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove the resource file with the outdated Qt logo and use the
builtin PySide logo instead.
- Use enum for the line type.
- Make line type radio box exclusive.
- Use snake case.
- Use class imports.
Task-number: PYSIDE-1112
Change-Id: Ie3e690ab56f619ec95b36b9101b06fa1e4704e5e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use snake case in dockwidgets and application.
- Fix imports in application to be consistent with others.
- Fix the code saving/restoring geometries in mdi/application
to use QWidget.save/restoreGeometry() instead of saving pos/size
since that handles multiscreen setups correctly. Use 'QtProject'
as settings category.
- Use theme icons in application as in mdi.
- Configure QFileDialog for saving HTML in dockwidgets.
- Replace QSignalMapper by partial functions in mdi.
- Fix one oversight of 4f2f9e2dc511ddcf802e342361e89edbf03a4a88
in mdi.
- Add command line arguments
Task-number: PYSIDE-1112
Change-Id: I7eca08a675876c74c6e754b946a2e63df4da3684
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
| |
Task-number: PYSIDE-1112
Change-Id: I60056e1cf0bac1279b7ff780fba908643339847e
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
As a drive by, fix the chartthemes example to work.
Task-number: PYSIDE-1112
Change-Id: I35deeba69f2db2c8c0848cce7316fb621b1b5818
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
As drive-by, Fix fortune server, addressbook and dombookmarks examples to work.
Task-number: PYSIDE-1112
Change-Id: I8ef7759ed56aeb7157cf2222bee9b6481973112a
Reviewed-by: Christian Tismer <tismer@stackless.com>
|