Bug 502310

Summary: Creating a new Plasmoid project produces a Plasma 5 only compatible project
Product: [Frameworks and Libraries] libplasma Reporter: Vincent Wilms <kde>
Component: libplasmaAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: igorkuo, nate, notmart
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vincent Wilms 2025-04-02 10:56:21 UTC
SUMMARY
Creating a new Plasmoid project produces a Plasma 5 only compatible project

STEPS TO REPRODUCE
1. Start a new project creation process
2. Select "Plasma"
3. Select "Plasmoid"
4. Select "Plasma-QML/C++-Miniprogramm (Qt6)" (don't know how it is named in Englisch)
5. Create the project

OBSERVED RESULT
The resulting main.qml file and the metadata.json both are not compatible with Plasma 6. E.g. in main.qml, there is no top-level PlasmoidItem.

EXPECTED RESULT
I expect either an option to select between Plasma 5 or Plasma 6 or the created project should be compatible with the most recent version of Plasma, e.g. 6.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
-
Comment 1 Igor Kushnir 2025-04-02 12:43:19 UTC
The Plasmoid templates are developed at https://invent.kde.org/plasma/libplasma/-/tree/master/templates

So the Product field of this bug report should be changed accordingly. Consider fixing the template yourself and creating a merge request at libplasma.
Comment 2 Vincent Wilms 2025-04-02 18:51:36 UTC
Thanks, I updated the product field. I`ll try to create a merge request for this file: https://invent.kde.org/plasma/libplasma/-/blob/master/templates/qml-plasmoid6/package/contents/ui/main.qml (and metadata.json)