Qt for Python Development Notes: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
Line 4: Line 4:
==== 25. April 2019 ====
==== 25. April 2019 ====
  - Preparation for Qt for Python 5.12.3 release.
  - Preparation for Qt for Python 5.12.3 release.
   - QtXmlPatterns replacement.
   - Replaced QtXmlPatterns by libxml2/libxslt for documentation generation
  - Testing and final polishing of Python output mode of uic 5.14
   - New signatures related to PYSIDE-989
   - New signatures related to PYSIDE-989
  - Looking into OpenGL version functions [https://bugreports.qt.io/browse/PYSIDE-955 PYSIDE-955]


==== 18. April 2019 ====
==== 18. April 2019 ====

Revision as of 14:03, 25 April 2019

2019

25. April 2019

- Preparation for Qt for Python 5.12.3 release.
 - Replaced QtXmlPatterns by libxml2/libxslt for documentation generation
 - Testing and final polishing of Python output mode of uic 5.14
 - New signatures related to PYSIDE-989
 - Looking into OpenGL version functions PYSIDE-955

18. April 2019

- Usage of QtXmlPattern in doc tool chain of Qt for Python
  - xml pattern deprecated in Qt 5.13
  - working on libxml2 replacement (has issues on platforms w/o libxml2 support)
  - in the long term, the qdoc generation process should really produce python docs too
  - updated coin to continue to include QtXmlPattern for Qt for Python builds
- PYSIDE-996 fixed on SuSE but not yet RedHat
- working on docs to provide hints when working with pyinstaller
- PYSIDE-955  in progress
- New attempt on PYSIDE-803
- shiboken PYSIDE-995 call operator support
- custom scene graph rendering node in Python (related to PYSIDE-955 PYSIDE-989)
- improving primitive type conversion (by the various OpenGL related bugs like PYSIDE-989 or PYSIDE-955)

11. April 2019

- PyInstaller problems identified as COIN bugs PYSIDE-996 
- continuing with PYSIDE-795 
  - handling pointers which are arrays arrays (patch defunct after too many other changes)
  - identifying remaining bad spots that need improving
- Started work on PYSIDE-955 
- Started diagnosis of PYSIDE-995 
- Continued on work enabling extending namespaces across modules

4. April 2019

- working in Wiki page on how to port a C++ application to Qt for Python (over time should turn into tutorial)
- further discussion how to handle snippets
- more tutorials (especially for PYSIDE-901)
- Further work on cross compilation for ARMv7
- Various fixes for Shiboken to handle namespaces in Qt better
- Improve Shiboken documentation composition/layout
- Bugfixing related to Qt file handling

28. March 2019

- Qt for Python 5.12.2 released last on 22. March 2019
- started to write up documentation on how to deploy with pyinstaller
  - finding quite a few issues when using pyinstaller on Windows (and particular Python 2)
  - macOS & Linux less problematic
- worked on documentation issues (like missing links for easier browsing)
- investigated issues where shiboken didn't handle C++ namespaces across modules
- handle nullptr usage properly in docs
- more translation of C++ snippets to Python (is a never ending task as there are thousands of C++ snippets)

21. March 2019

- Qt for Python 5.12.2 release activities
 - some bugs and general CI issues kept delaying the generation of the final release wheels
 - most bugs were related to pyinstaller and other deployment tools
 - one last cxfreeze bug being integrated
 - next/subsequent set of wheels will be 5.12.2 release
- Lots of installer related discussions in the team
 - question is which installer/deployment tool to use/recommend
 - current decision is to provide guides/documentation for at least fbs and pyinstaller
- review of project's current release practices (in particular in the area of QA)
 - no outcome at this stage
- addressed issues in dev branch related to changes in Qt dev branch
- Qt for Python team joined Qt doc team to talk about ways how to improve Qt for Python docs

14. March 2019

- Fixed broken documentation formatting; added deprecation information
- QTBUG-74424 5.13 Release blocker affecting doc generation occurred
- PYSIDE-932/PYSIDE-942: The embedding patch is mostly
  working, but needs some refinement to be complete:
  - The .pyc generation contradicts the Limited API and must be changed to 
    use source code.
  - The code isolation must be made explicit and complete, so that installers 
    don't recognize that there is something.
    Right now this was done in the wrong direction.
  Not much code and time necessary, just fixing the right bits.
- PYSIDE-934 The Buffer protocol for Python 2 needed a special flag to be compatible.                 
- Added more features for the Python project wizards on QtCreator https://codereview.qt-project.org/#/c/255686/
- Created a new tutorial for a workshop https://github.com/cmaureir/qtforpython_workshop

7. March 2019

- Qt for Python 5.12.2 release
 - waiting for final patch before release (PYSIDE-942/PYSIDE-932)
- Setting up test envs for Python 3.7 & 3.5 (so far testing was always done on Python 3.6) -> work in progress
- QML tutorial under review (https://codereview.qt-project.org/#/c/254044/10)
- how to integrate deprecation infos from Qt to the Python side
- Python output to rcc PYSIDE-855
- PYSIDE-95 fixed
- Experimented with MicroPython
- Found the reason for PYSIDE-966: A memory leak was fixed by ctypes.

28. February 2019

- Discussion on adding more python testing environments to be certain 3.5+ versions are properly working.
- PYSIDE-953 fixed
- PYSIDE-934 almost done
- PYSIDE-931 almost done
- refcount bug fixes mathplotlib crashes:
  - PYSIDE-928
  - PYSIDE-937
  - PYSIDE-943
- WIP: Embedding to solve signature problems dependency of support directory since 5.12.1 . Will solve  
  - PYSIDE-942  missing support, PyInstaller  (was solved but involves PyInstaller change)
  - PYSIDE-932  missing support, cx_freese

21. February 2019

- research on how to do ad hoc releases of Pyside 2 for bug fixes like last weeks meta data change (and otherwise no further source change)
- Qt 5.12.2 about to be released -> should have a Qt for Python 5.12.2 release
- discussed installer related crash bug following 5.12.1 release PYSIDE-932 etc.
- tutorials works (based on recent Qt for Python youtube videos)
- prepared discussions with doc team meeting next week (on Python support)
- some more work on PYSIDE-795
- work to distinguish array types from pointer variables
- PYSIDE-946 under development
- PYSIDE-934 void* type handling
- PYSIDE-938 under review
- Current Creator 4.9 beta released today added Python project templates
- PEP 518 (project format for Python projects) -> needs Qt Creator support

14. February 2019

- 5.12.1 wheels had meta data issues and were redone with fixed meta data
- discussed improving the integration of Python example code into Qt for Python docs
- PYSIDE-921
- improved signature matching for custom types
- PYSIDE-816 fixed and merged
- PYSIDE-922 fixed
- PYSIDE-45 fixed
- looking at crashes when importing pandas & numpy (the order of imports matters when working around it)

7. February 2019

- Fixed 5.13 deprecation warnings (which unearthed that we had a dependency on QString::isNull() vs isEmpty() in shiboken)
- Fixed a large number of shiboken code generation warnings (revealing some issues)
- Provided s solution for one issue mentioned at PYSIDE-725 (apparently Sharon Woods from US is involved in some consulting?)
- Will start formal release tag marking in Jira (matching Qt style)
- Data visualization tutorial fixes
- Talking about further integration of existing examples into general docs
- PYSIDE-803 further investigation - no conclusion yet
- PYSIDE-921 fixed
- PYSIDE-816 investigated - fix seems at hand
- PYSIDE-924 fixed issue where Q_PROPERTY flags were not properly passed on to Qt
- restructured cmake files adding a master cmake file (simplifies opening of project in IDEs)
  - Now it's possible to open the whole project (PySide2 + Shiboken2) on QtCreator using the global CMakeList.txt
- worked on issues related to the setup.py and how to execute it.

31. January 2019

- Preparing 5.12.1 release
  - Packages are looking good, likely to be released at same time as Qt 5.12.1 release
- Submitted class bindings of Qt RemoteObjects for PYSIDE-862
- Added classes QWebEngineHistory, WebEngineHistoryItem with required fix PYSIDE-906
- Have calls to method annotated as deprecated issue a warning
- Fixed warnings, prepared Qt 5.13 bindings (based on current 5.13 API additions)
- Looked into PYSIDE-816, PYSIDE-803
- Data visualization tutorial added
- working on ways of substitution of C++ specific terms in docs against Python equivalents (e.g. nullptr and bool)

24. January 2019

- Release branch for 5.12.1 exist
  - There was some issues in CI with 5.12 branch earlier this week and it was pretty much blocked. All issues should be solved now.
- Prepared class bindings of Qt RemoteObject for PYSIDE-862 for review
- Some creativity to keep integrations going due to COIN issues
- Investigation of PYSIDE-803 is ongoing. The issue needs deep analysis to isolate the problem.

17. January 2019

- Fixed PYSIDE-908, further investigation into PYSIDE-803 (free threading)
- QfP 5.12.1 release being prepared
- PYSIDE-797 (uic change ready for review)
- PYSIDE-862 (Qt RemoteObject module support)
- PYSIDE-634 being fixed
- started to look at true cross compilation (PYSIDE-802)
- Improving Qt Creator project template support (QTCREATORBUG-21824)

10. January 2019

- Scope for Qt for Python 5.13 release
  -> relevant tasks marked with Fixversion 5.13 in bugreports.qt.io
  -> feature freeze for Qt for Python 5.13 (April 2019)
- looked into case of corrupted meta data of wheel
- supporting named arguments for signals
- some minimal support in Qt Creator to create a Qt for Python project
- bug hunting in 5.12.0 release
- working on Pyside-797
- further analysis of PYSIDE-803, working on an implementation plan

3. January 2019

- Completed: Complete The Signature Introspection (PYSIDE-510)
- After the release there has been a couple of new reported bugs that we are working on:
 - There was some outdated documentation issue regarding Slots()
 - A couple of issues with multiple inheritance like: PYSIDE-868
 - and with QPlainTextEdit PYSIDE-886
- Restarted investigation of PYSIDE-803

2018