Below are steps for setting up a functional KDE 6 in Qubes debian-13 templates. Note this does not include unifying KDE/Qt/Gnome/GTK appearance settings and file dialogs...
In dom0 make a clone of a 'debian-13' template (which is Gnome-based).
In the new template run sudo tasksel then select "KDE" and de-select "Gnome".
After tasksel is finished installing KDE, run sudo apt autopurge gnome* to remove Gnome – this is important.
Add a file to the template's /etc/profile.d to set the required desktop session variable:
$ sudo nano /etc/profile.d/kde4qubes.sh
The content of the file:
export XDG_CURRENT_DESKTOP=KDE
Create a link in /etc/xdg/menus. This allows apps like Dolphin to associate file types:
$ sudo ln -s /etc/xdg/menus/plasma-applications.menu /etc/xdg/menus/applications.menu
Copy the desktop definitions for Qubes file browser actions (Copy to other qube, etc.) from their old locations to the KDE 6 compatible locations:
$ sudo apt install zenity
$ sudo cp -a /usr/share/kde4/services/qvm-convert-pdf.desktop /usr/share/kio/servicemenus
$ sudo cp -av /usr/share/kservices5/ServiceMenus/qvm-* /usr/share/kio/servicemenus
$ sudo sed -ri 's|^(\[Desktop Action)|X-KDE-Submenu=Actions\nMimeType=inode/directory;all/allfiles\n\n\1|' /usr/share/kio/servicemenus/qvm-{copy,move}*
$ sudo sed -ri 's|^(\[Desktop Action)|X-KDE-Submenu=Actions\nMimeType=all/allfiles\n\n\1|' /usr/share/kio/servicemenus/qvm-dvm*
Shutdown the template.
Change template and appVM settings under the "Applications" tab to include the new utilities. Adding "Open file manager" and "Run terminal" will run the default file browser and terminal (in this case, Dolphin and Konsole) assigned for the template's environment, but you can also add "Dolphin" and "Konsole" as app entries to access them directly.
(Optional) Run Dolphin and under "Configure Dolphin -> Context Menu" de-select the "Send file via KDE Connect" plugin. This will prevent Dolphin from freezing for 30sec when you first access a file's context menu. (It would be preferable to configure KDE Connect to prevent this delay... suggestions are welcome!)
These instructions can probably be adapted for Fedora templates as well with some changes to the tasksel and apt steps. They may also work when starting from an Xfce template; in that case an additional apt autopurge xfce* step (in addition to purging gnome*) will be very important for removing the Xfce environment settings as simply removing the packages doesn't work.