Bug 502310 - Creating a new Plasmoid project produces a Plasma 5 only compatible project
Summary: Creating a new Plasmoid project produces a Plasma 5 only compatible project
Status: CONFIRMED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-02 10:56 UTC by Vincent Wilms
Modified: 2025-04-02 21:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)