Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cura 8640 PyQt6 upgrade #804

Merged
merged 89 commits into from
Apr 14, 2022
Merged

Cura 8640 PyQt6 upgrade #804

merged 89 commits into from
Apr 14, 2022

Conversation

jellespijker
Copy link
Member

@jellespijker jellespijker commented Apr 12, 2022

In order to get this to work on our build-system and working for all three OSes we did a shit tons of boy scouting in our cmake. We removed old methods with variables and try to be consisted in a target-based approach. The idea is that we don't patch stuff down the line, but that the install should place everything in the correct path in a uniform way across all of Cura's dependencies. Most of these changes are in the other PR's. The CMakeLists.txt changes here are for consistency overal.
Main difference is that we don't install in dist-packages anymore.

The other changes to qml and in most of the Python side I have were made by @rburema , @casperlamboo @Joeydelarago @nallath and @rburema Maybe they can supplement this comment.

Part of

Fixes

Todo

rburema and others added 30 commits December 28, 2021 14:44
This _may_ have been what stopped Pytjon 3.10 even (will try this out -- if we are using 3.10 after this after all then that was probably it).

part of CURA-8591
Conflicts:
	UM/PluginRegistry.py -> Master changed a bunch of the init for the new Marketplace, while the singleton logic changed for Qt6.
	UM/Qt/ListModel.py -> Imports got modified at the same time.
	UM/Qt/QtApplication.py -> Typing got added twice, but in different ways.
Because we had to rename our Python bindings module from Arcus to pyArcus
we also changed our import downstream (Cura and Uranium). But in order
to limit the changes on our existing code we decided during the review
that we should just import pyArcus as Arcus.

Contributes to CURA-7924
Contributes to CURA-8640
QOpenGLContext has now versionFunctions since PyQt6

Contributes to CURA-8640
# Conflicts:
#	UM/Qt/qml/UM/MessageStack.qml
This should also install cura and UM in the site-packages in a uniform
OS agnotisc path. I also removed the renaming of cura_app.py to cura
on Linux. Because this seemed to confuse pyinstaller.

Contribute to CURA-8640
Such as a virtual environment

Contributes to CURA-8640
Contributes to CURA-8640
The solution is to pull the flag from an enum by value.

More info about flags here https://doc.qt.io/qt-6/qquickitem.html#Flag-enum

CURA-8640
Update imports to use correct version number.

CURA-8640
With the update to Qt6 regular vertex and fragment shaders are no longer supported. Instead these shaders need to be compiled to the universal shader language binary qsb format.

Using the `scripts/compile-shaders` shell script shader programs can be compiled and written to the cura-binary-files repo.

Files from this commit in the cura-binary-data repo are generated using
```
scripts/compile-shaders resources/shaders ../cura-binary-data/uranium/resources/shaders
```

CURA-8640
Due to API change

CURA-8640
This was still being used in the MaterialBrandsMenu and the SimpleButton
Probably why the X es were missing from the info messages. CURA-9110

Contributes to CURA-8640
Contributes to CURA-8640
Copy link
Member Author

@jellespijker jellespijker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused headers and some missing typings

examples/definition_viewer/DefinitionTreeModel.py Outdated Show resolved Hide resolved
plugins/LocalContainerProvider/LocalContainerProvider.py Outdated Show resolved Hide resolved
scripts/compile-shaders Show resolved Hide resolved
UM/Qt/Bindings/ApplicationProxy.py Outdated Show resolved Hide resolved
UM/View/GL/OpenGLContext.py Show resolved Hide resolved
UM/ColorImage.py Outdated Show resolved Hide resolved
UM/ColorImage.py Outdated Show resolved Hide resolved
UM/ColorImage.py Outdated Show resolved Hide resolved
UM/ColorImage.py Outdated Show resolved Hide resolved
Joeydelarago and others added 17 commits April 13, 2022 14:39
Co-authored-by: Jelle Spijker <[email protected]>
Co-authored-by: Jelle Spijker <[email protected]>
Adding spaces, clarifying comments and adding types.

Co-authored-by: Jelle Spijker <[email protected]>
@Ghostkeeper Ghostkeeper merged commit 1ce7ab4 into 5.0 Apr 14, 2022
@jellespijker jellespijker deleted the qt6_beyond_the_splash branch April 20, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Just install this version of UM and is install in python3.5 instead of python3.7 Do not use dist-packages
6 participants