Bug 457035 - Breeze style not applied to app built with craft on Windows
Summary: Breeze style not applied to app built with craft on Windows
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Breeze
Classification: Plasma
Component: general (show other bugs)
Version: 5.25.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-23 02:19 UTC by george fb
Modified: 2022-07-27 14:51 UTC (History)
2 users (show)

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


Attachments
app with breeze 5.24.4 (53.48 KB, image/png)
2022-07-23 02:19 UTC, george fb
Details
app with breeze 5.25 (58.20 KB, image/png)
2022-07-23 02:20 UTC, george fb
Details

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