With that code I found earlier, I ported the old layer shell qt QML example to the new library properly. It's sadly AGPLv3 though, wish it could be less. If anyone has better replacement code that's not (A)GPL, I'll be grateful. I don't like the GPL due to its ties with the FSF and RMS so when I use it, there's no other choice.
https://codeberg.org/DrewNaylor/layer-shell-qt-updatedqmldemo/src/branch/master/tests/mainex.cpp