Bug 457035

Summary: Breeze style not applied to app built with craft on Windows
Product: [Plasma] Breeze Reporter: george fb <georgefb899>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate, uhhadd
Priority: NOR    
Version First Reported In: 5.25.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: app with breeze 5.24.4
app with breeze 5.25

Description george fb 2022-07-23 02:19:58 UTC
Created attachment 150839 [details]
app with breeze 5.24.4

I have a qt widgets app that I build on Windows with craft and use the breeze style.
With breeze 5.24.4 everything is fine, but with 5.25.0 and 5.25.3 the breeze style is not applied.
This only happens when I install the package created by craft (craft --package ...), if I run the executable inside the CraftRoot/bin folder it works fine.  
Craft blueprint: https://github.com/g-fb/craft-blueprints-gfb/blob/master/qt-apps/mangareader/mangareader.py

STEPS TO REPRODUCE
1. Build app with craft
2. Create package with craft
3. Install package
4. Run installed app

OBSERVED RESULT
With breeze 5.24.4 app looks fine, with breeze 5.25 app is not using the breeze style

EXPECTED RESULT
App should use breeze style 

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 5.96
Qt Version: 5.15.5
Comment 1 george fb 2022-07-23 02:20:40 UTC
Created attachment 150840 [details]
app with breeze 5.25
Comment 2 Nate Graham 2022-07-26 18:15:04 UTC
Apps have to explicitly opt into using the Breeze style when built for Windows, if I'm not mistaken. The apps that already show Breeze on Windows have done this.
Comment 3 george fb 2022-07-26 18:22:16 UTC
(In reply to Nate Graham from comment #2)
> Apps have to explicitly opt into using the Breeze style when built for
> Windows, if I'm not mistaken. The apps that already show Breeze on Windows
> have done this.

I am setting breeze as default style [link 1] and it is set as a dependency in the blueprint [link 2].

Something changed between 5.24.4 and 5.25

[link 1] - https://github.com/g-fb/mangareader/blob/43dc664ec6b2fd0b1f391bcdd4fc077609fc9485/src/main.cpp#L21
[link 2] - https://github.com/g-fb/craft-blueprints-gfb/blob/987c73d915f7f1e99316f35c4e4b6d08bf432dd5/qt-apps/mangareader/mangareader.py#L25
Comment 4 Nate Graham 2022-07-27 14:51:58 UTC
Hmm, that is weird. Might be worth bringing up in #kde-devel or the window packaging room (I don't know what it is, sorry).