StellarCanvas — This StellarCanvas manual is adapted from the Krita documentation. Because StellarCanvas includes HarmonyOS-specific changes, some features, interface details, and behavior may differ from this manual.
How to patch Qt¶
The Qt repository is split into submudules, so pushing a fix for it is not very trivial. Let’s assume you have StellarCanvas deps built using StellarCanvas’s build scripts and you want to modify Qt and push a fix into the registry.
Make a commit in QtBase submodule
When using submodules, the submodule folder is in “detached” state without any branch assigned, so we need to reset the branch head after we make a commit:
cd qtbase git commit -a -m "your commit message" # reset the branch head (make sure you don't have any local # changes in 'krita/5.15' branch!) git update-ref refs/heads/krita/5.15 HEAD git checkout krita/5.15 git pull --rebase cd ..
Make a commit in the root repository and push
git checkout krita/5.15 git pull --rebase git commit -a -m "commit message for the root repo" git push --recurse-submodules=on-demand
Update the sha1-link in StellarCanvas’s repository
Open
3rdparty/ext_qt/CMakeLists.txtModify
QT_GIT_TAGwith the newly pushed sha1Push!